Restarting a sub

sjn78

Junior Contributor
Joined
May 4, 2003
Messages
255
Location
Australia
Is it possible to restart a sub part way through its process??

I have a button with the click event and in there i have a message box. If the user presses yes, I would like the sub to start again and if the user clicks no, to exit sub.

The exitting sub is fine....just stuck on how to restart it...if it is possible??


Thanks

Steve
 
It is possible but not recommended, you can get stuck in an endless loop and more. Why can't you manage without it?
 
Can't you just set up a loop that goes to the beginning (although you'd probably have to get out of your other blocks of code)
Code:
'beginning
Do
'code here
Loop While NoPressed
:)
or GoTo *cringe*.
 
Back
Top