wait for user action in VBA code
Do you know how to adapt the code,
Private Sub Worksheet_Change(ByVal Target As Range)
to execute when one particular cell is changed rather than any cell in the
worksheet?
"Tom Ogilvy" wrote:
in general, no.
You would need to interact with the user with an inputbox, msgbox, or
userform and take the appropriate action.
However, clever use of events and so forth may allow you to achieve your
objective.
--
Regards,
Tom Ogilvy
"benb" wrote in message
...
Is there a way in VBA to stop executing the code, wait for the user to
copy &
paste or enter a value into a particular cell (perhaps perform some other
action like opening files to find the value in question), then finish
executing the code after having entered the value? Thanks, as usual, for
your help.
|