I am setting up a work rotation spreadsheet that will allow me to create our rotation at the click of a button once I've filled out some data prior too (position, dates, etc...)
Now I have a Userform that will pop up and ask me to replace a body if they are working the exact same day two weeks in a row (i.e.. If they worked Tuesday one week, they can't work it again the next week) by using a combobox.
Now if someone cancels the userform without selecting anything from the combobox is there a command I could use that would not only stop the userform macro, but the original macro that pointed to it? I've thought about just using an empty cell to put a 1/0 in to show if a selection was made or not, but in the spirit of learning, I'd figure I'd try and find out if there was actual code to do something like this.
Simple Explanation of Problem:
Main Macro Runs ----> Needs to replace someone ----> Main Macro opens Useform to allow selection ----> Person decides to exit out/Cancel without making a selection ----> Userform macro realizes it's empty so exits ----> Main macro keeps on a truckin..
What I'd like to see happen:
Main Macro Runs ----> Needs to replace someone ----> Main Macro opens Useform to allow selection ----> Person decides to exit out/Cancel without making a selection ----> Userform macro realizes it's empty so exits ----> Main macro stops also..
Bookmarks