Good afternoon, Fellow Excellitrons
Excel 2007 / XP o/s
Please read this carefully as the answer is not Escape, CTRL+Break, Stop or Exit Sub!
Does anyone know of some code that can halt the execution of any further code?
Here's a theoretical example
Obviously an "Exit Sub" where the question marks are would just return to the Run sub and the evil curse. What command would make it stop and stop good?
EverSoThanks in advance,
Tom
Excel 2007 / XP o/s
Please read this carefully as the answer is not Escape, CTRL+Break, Stop or Exit Sub!
Does anyone know of some code that can halt the execution of any further code?
Here's a theoretical example
Code:
Sub Run
Call RunAgain
MsgBox("You have been cursed")
End Sub
Sub RunAgain
If [MyWish].Value = "Curse me not" Then ????????
'Some other stuff
End Sub
Obviously an "Exit Sub" where the question marks are would just return to the Run sub and the evil curse. What command would make it stop and stop good?
EverSoThanks in advance,
Tom