This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.
The Stop statement suspends execution, but unlike End, it doesn't close any files or clear variables, unless it is in a compiled executable (.exe) file.
This example uses the Stop statement to suspend execution for each iteration through the For...Next loop.
Dim I For I = 1 To 10 ' Start For...Next loop. Debug.Print I ' Print I to the Immediate window. Stop ' Stop during each iteration. Next I