Stop Instruction

Syntax
Stop
Group
Flow Control
Description
Pause execution. If execution is resumed then it starts at the next instruction. Use End to terminate the macro completely.

Sub Main
    For I = 1 To 10
        Debug.Print I
        If I = 3 Then Stop
    Next I
End Sub