Say I have a button embedded into my spreadsheet that launches some VBA function.
Private Sub CommandButton1_Click()
SomeVBASub
End Sub
Private Sub SomeVBASub
DoStuff
DoAnotherStuff
AndFinallyDothis
End Sub
I'd like to have an opportunity to have some sort of a "cancel" button that would stop SomeVBASub
execution at an arbitrary moment, and I'm not into involving Ctrl+Break
here, 'cause I'd like to do it silently.
I guess this should be quite common issue, any ideas?
Thanks.
See Question&Answers more detail:os