How would I kill a macro - just end it all - from a userform called from a macro?
Brief description:
Macro is called.
Userform is called
If Cancel, Exit userform & macro
else continue macro.
I think I'm over scrutinizing this a little bit..
Printable View
How would I kill a macro - just end it all - from a userform called from a macro?
Brief description:
Macro is called.
Userform is called
If Cancel, Exit userform & macro
else continue macro.
I think I'm over scrutinizing this a little bit..
Use the End statement to stop ALL code.
Code:If (Cancel Command Button Is Pressed) Then
End
Else
'More Code Here
End If
Ah, very cool! I didn't know you could do that, exactly what I was looking for. Thanks Jake! Youdda man!! :)