View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Jim Rech Jim Rech is offline
external usenet poster
 
Posts: 2,718
Default Advancing to the next iteration of a loop?

You just have to do something like this:

Sub a()
Dim Counter As Integer
For Counter = 1 To 10
If Counter = 5 Then GoTo NextLoop
Debug.Print Counter
NextLoop:
Next
End Sub


--
Jim
"Maury Markowitz" wrote in
message ...
|I can't find any way to advance a loop in VB. It won't let you put a NEXT
| anywhere by the bottom, and I can see anything like "continue" or "next
for".
| Is this feature really missing??!?
|
| Maury