Is there a method of exiting/breaking a while in VBS/VBA?
while
Following code won\'t work as intended:
num = 0 while (num < 10) if (s
Use Do...Loop with Until keyword
num=0 Do Until //certain_condition_to_break_loop num=num+1 Loop
This loop will continue to execute, Until the condition becomes true
While...Wend is the old syntax and does not provide feature to break loop! Prefer do while loops