Solved

Exit Sub, how start from beginning?

Posted on 1998-10-22
2
136 Views
Last Modified: 2010-04-30
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
Comment
Question by:RUSTY
2 Comments
 
LVL 1

Accepted Solution

by:
CarlosJac earned 20 total points
ID: 1441146
try

Private Sub xxxxxxx

startpos:

If this Then  
  that
If that = xx Then
  Exit Sub

go to startpos

0
 

Author Comment

by:RUSTY
ID: 1441147
Ah, brilliant!  Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
LINQ return type for nested group query 6 70
how to open Waze.com/livemap from address saved in DB? 26 173
How does CurrentUser work? 10 31
using web browser with BING 40 110
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now