logo
  • 教程列表
  • SO官方文档
  • 调试和故障排除
    • 即时窗口
    • Debug.Print
    • 使用 Timer 查找性能瓶颈
    • 调试器本地窗口
    • 停止
    • 在代码中添加断点
  1. StackOverflow 文档
  2. excel-vba 教程
  3. 调试和故障排除
  4. 停止

停止

Created: November-22, 2018

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
  • 在代码中添加断点
  • 调试器本地窗口

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明