Execute a specific statement
While execution of your code is halted, you can control the execution sequence of statements within a procedure. You can resume execution at a statement you choose without executing any intervening code.
To set the next statement to be executed
In the Code window, position the insertion point anywhere within the statement.
On the Debug menu, choose Set Next Statement (CTRL+F9), or on Windows, position the mouse pointer in the margin indicator next to the current execution point.
Drag the yellow arrow in the margin indicator to the statement that you want to execute next.
Note
You can only skip to statements within the same procedure.
Used in combination with Step Into, executing specific statements with the Set Next Statement command enables you to step through procedures one statement at a time, and to closely examine your code. It's also helpful for correcting or avoiding run-time error conditions.
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기