What's the equivalent of c++'s "continue" keyword in VBA?
In other words how do you cause a loop to restart. For instance, given this code:
dim i as integer
i = 0
do
i = i + 1
msgbox "i is " & i
if i > 5 then
CONTINUE
end if
i = i + 1
loop until i > 10
if CONTINUE is the statement I'm looking for, then this is the output of the previous code:
i is 1
i is 3
i is 5
i is 7
i is 8
i is 9
i is 10
-Venkman
In other words how do you cause a loop to restart. For instance, given this code:
dim i as integer
i = 0
do
i = i + 1
msgbox "i is " & i
if i > 5 then
CONTINUE
end if
i = i + 1
loop until i > 10
if CONTINUE is the statement I'm looking for, then this is the output of the previous code:
i is 1
i is 3
i is 5
i is 7
i is 8
i is 9
i is 10
-Venkman