Do x = x + 1 debug.print x if x > 5 then Exit Do Loop In the above code snippet, x will eventually be set to 5 and the Exit Do will get out of the loop. This statement can be used to prevent an infinite loop
In the above code snippet, x will eventually be set to 5 and the Exit Do will get out of the loop. This statement can be used to prevent an infinite loop