Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2005

Tip: Looking for answers? Try searching our database.

Get user selection

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Aitken - 08 Jul 2005 21:53 GMT
I am writing a VBA macro. I want to pause and let the user select some text
in the document and then continue execution. Is this possible?

Signature

Peter Aitken

Remove the crap from my email address before using.

Jezebel - 09 Jul 2005 00:54 GMT
Not easy. What are you actually trying to do? Why do you need the selection
to change while the macro is running?

>I am writing a VBA macro. I want to pause and let the user select some text
>in the document and then continue execution. Is this possible?
Peter Aitken - 09 Jul 2005 14:21 GMT
The macro is processing a document. At this point the user needs to look at
the document and make a decision (something I could not automate because it
requires human judgement) and either select some text or select nothing.
Then the macro will continue and based on whether text was selected or not
go down one of two different paths.

Signature

Peter Aitken

Remove the crap from my email address before using.

> Not easy. What are you actually trying to do? Why do you need the
> selection to change while the macro is running?
>
>>I am writing a VBA macro. I want to pause and let the user select some
>>text in the document and then continue execution. Is this possible?
Jean-Guy Marcil - 09 Jul 2005 15:20 GMT
Peter Aitken was telling us:
Peter Aitken nous racontait que :

> The macro is processing a document. At this point the user needs to
> look at the document and make a decision (something I could not
> automate because it requires human judgement) and either select some
> text or select nothing. Then the macro will continue and based on
> whether text was selected or not go down one of two different paths.

Can't you ask the user to make that selection before launching the macro?

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.