Description
Suspends execution.
Syntax
Stop
Remarks
You can place Stop statements anywhere in procedures to suspend execution. Using the Stop statement is similar to setting a breakpoint in the code.
The Stop statement suspends execution, but unlike End, it doesn't close any files or clear variables.
See Also
End Statement.
Example
This example uses the Stop statement to suspend execution for each iteration through the For...Next loop.
For I = 1 To 10 ' Start For...Next loop. Debug.Print I ' Print I to Debug window. Stop ' Stop each time through. Next I