What is the syntax to stop loops

'for For Loops
Exit For

'for Do Loops
Exit Do

Exit statements will exit immediately and jump to next statement after the loop.

Advertisements

What is the syntax for Do Loops?

Do While <condition>
    [ statements ]
Loop
Do Until <condition>
    [ statements ]
Loop
Do
[ statements ]
Loop While <condition>
Do
[ statements ]
Loop Until <condition>