Stop Instruction
Syntax
Stop
Group
Flow Control
Description
Pauses execution.
If execution is resumed, it starts at the next instruction.
Use End to completely terminate the macro.
Example
Sub Main
For I = 1 To 10
Debug.Print I
If I = 3 Then Stop
Next I
End Sub