Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 149
  • Last Modified:

Exit Sub, how start from beginning?

For instance, code like this

Private Sub xxxxxxx
If this Then  
  that
If that = xx Then
  Exit Sub

' here is where I need the code to start the Sub over from   the beginning.

Thanks.
0
RUSTY
Asked:
RUSTY
1 Solution
 
CarlosJacCommented:
try

Private Sub xxxxxxx

startpos:

If this Then  
  that
If that = xx Then
  Exit Sub

go to startpos

0
 
RUSTYAuthor Commented:
Ah, brilliant!  Thanks.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now