Can someone help me to come up with the code to stop or break a running macro via a command button on a userform? I have two buttons on the userform, one to click when the macro is complete to unload the userform (I have the code for that) and another to stop the macro dead in its tracks while it is running if it is taking too long. Instead of the user pressing Ctrl + Break, I would rather have them click on a button.
Also, if I do this by a command button code, could I get a message box to pop up to ask "Are you sure?" just to confirm the macro should be stopped, and if the answer is no, then the macro will continue where it left off?
Thanks so much for all your help! You guys and gals are great.
Also, if I do this by a command button code, could I get a message box to pop up to ask "Are you sure?" just to confirm the macro should be stopped, and if the answer is no, then the macro will continue where it left off?
Thanks so much for all your help! You guys and gals are great.