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?
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