I am trying to create a simple conditional loop that will go to the next iteration if a condition is true. The code I have so far is:
For i = 2 To 24
Level = Cells(i, 4)
Return = Cells(i, 5)
If Return = 0 And Level = 0 Then
'Go to the next iteration
Else
End If
Next
I have tried GoTo NextIteration, but this comes up with the error 'Label not defined'. This probably has a very simple solution, but assistance would be much appreciated.
Thanks.
Continuein VbScript. You would have to play aroundIf-Elseto skip any iteration. Go thru the link posted by @AlexK. It has some good suggestions.Returnshouldn't be used... (you know... it is used for other stuff and may lead to huge problems if used as a variable)