How to Stop a Macro if a 'Call' macro was used
you'd have to code in the condition..........
if <condition then
exit sub
end if
when it exits then it would go back to the first macro that called
it. once it's in the middle of running the only way to break out of
it is Ctrl+Break.
hth
:)
susan
On Jul 30, 7:25*am, "Corey" wrote:
Is ther a way to Cancel a CommandButton on a form via a Module Sub Routine ?
I can have :
Userform1.CommandButon2.Cancel
but it does not STOP the macro from running that called the other macro in
the module, but returns an error.
Is ther a way to STOP/CANCEL a CommandButton continuing from a Module code?
Corey....
|