madchemist
Board Regular
- Joined
- Jul 10, 2006
- Messages
- 198
I have a user form that I created that I want to prompt users to make sure they intended to hit a macro button that is not reversible.
After they read the warning, they click Yes or No, or the red X in the upper right corner.
I prompt the warning in the code just using:
So If they click yes, shouldn't I just use the following code to exit the form and have the macro continue?
Even when they click no or the red x, the macro is continuing. What do I write for the code the kill the macro?
Would I just use Kill, or is there some other command that will stop it? Also, how do I write the code for the red X button?
Thanks!
After they read the warning, they click Yes or No, or the red X in the upper right corner.
I prompt the warning in the code just using:
Code:
frmWarning.show
So If they click yes, shouldn't I just use the following code to exit the form and have the macro continue?
Code:
Private Sub frmWarning_Click()
Unload Me
End Sub
Even when they click no or the red x, the macro is continuing. What do I write for the code the kill the macro?
Would I just use Kill, or is there some other command that will stop it? Also, how do I write the code for the red X button?
Thanks!