Hello,
I have a spreadsheet that generates a report in Word depending on what users select in a userform.
The architecture is like this:
master macro - runs/calls all the macros below
macro 1 - displays the userform
macro 2 - does stuff based on the userform input
macro 3 - does more stuff
....
macro 8 - generates report
The problem I am having is with the cancel button (the red x in the top corner). If I click on the cancel button, the userform disappears, then macro 2 runs,
then macro 3 runs
then macro 4 runs
all the way until the last macro.
Is there anyway to stop ALL the macros running, if the user presses cancel on the userform?
This is really driving me crazy. I don't want to add a "Cancel" command button, or hide the red x, or reassign it. I just need some code to make it stop all macros.
Any help greatly appreciated...![]()
Bookmarks