For i = 1 To 3
'do what ever HAS to be done always....
If i= 2 Then
'leving this blank will cause the loop to do nothing
else
'Do what ever is left to be don if the condition was not met
End if
Next
it appears that the if-clause is the only solution.
I know that "goto"s are not very good and should normally be avoided but in my case it would have made the code easier and shorter as the "MsgBox(i)" stood for a complex code and a further if-clause makes the code even more complex.
I would have expected that to work as it is jumping within the same scope, and indeed it does work as expected if it is optimised compiled. I think, perhaps wrongly, that it would have worked in the past in the IDE or a legacy app. Maybe Erel has changed something.
Sorry for missing this important point.
Jumping inside loops is technically not supported. It wasn't supported in previous versions as well.
Goto labels can only be in the most upper scope.