How do I end a vb program in an orderly fashion?
Posted on 2006-04-29
I have VBA, VBS and VBSCRIPT programs that I sometimes need to exit from all the subroutines/ functions and go to a specific subroutine to end the program. I suspect in order for the program to end in an orderly fashion, I want the call stack cleared (We used to call this "popping the call stack" when I programmed back in the '70s... the old dinosaur that I am).
How do I accomplish this? Are the commands different for VBA, VBS and VBSCRIPT?
Thanks for your help. With Regards-