Get user selection

P

Peter Aitken

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

Jezebel

Not easy. What are you actually trying to do? Why do you need the selection
to change while the macro is running?
 
P

Peter Aitken

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.
 
J

Jean-Guy Marcil

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?

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
[email protected]
Word MVP site: http://www.word.mvps.org
 
Top