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

  • 關於本站
  • 免責聲明