停止

Stop 命令將在呼叫時暫停執行。從那裡,該過程可以恢復或逐步執行。

Sub Test()
    Dim TestVar as String
    TestVar = "Hello World"
    Stop                    'Sub will be executed to this point and then wait for the user
    MsgBox TestVar
End Sub