Exit Sub, how start from beginning?

Posted on 1998-10-22
Last Modified: 2010-04-30
For instance, code like this

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

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

Question by:RUSTY

Accepted Solution

CarlosJac earned 20 total points
ID: 1441146

Private Sub xxxxxxx


If this Then  
If that = xx Then
  Exit Sub

go to startpos


Author Comment

ID: 1441147
Ah, brilliant!  Thanks.

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
passing parameter in sql procedure 9 65
vb6 connector to SQL Server 2 37
Sub or Function is not defined 6 43
VBA to find and replace multiline text from VBA modules 8 63
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

808 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