You might want to take a look at the Exit statement
For ix = 1 to 10
If (somecondition = true) Then
Exit For
End If
Next ix
There is also
Exit Do
Exit Sub
Exit Function
Good Luck
-------------- As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.