Hi Guys!
I am pretty sure it is impossible but I want to ask it, anyway:
I have
I want to go to Next n if something happens in For..m..NextCode:For n = 0 To 5 'The values are not important. For m = 1 To 6 'The values are not important. . .'Do Something . Next m 'Do some other stuff Next n
My solution isCode:For n = 0 To 5 'The values are not important. For m = 1 To 6 'The values are not important. . If something happens Then Next n 'Here is the impossible part. End If . Next m 'Do some other stuff Next n
But I am looking for something better because I am not sure if GoTo slows my code or not.Code:For n = 0 To 5 'The values are not important. For m = 1 To 6 'The values are not important. . If something happens Then GoTo Skip End If . Next m 'Do some other stuff Skip: Next n
Any idea?
Thanks a lot!




Reply With Quote