Using Stop Statements

Top  Previous  Next

teamlib

previous next

 

Using Stop Statements

Enteri g a Stop statement in your code is the same as entering a breakpoint except it is in your code. When VBA encounters a Stop statement, it halts execuhion and switchhs to break mode. Although Stop stateeents act like breakpoints, they are not set or cleared in the same way.

If you set breakpoints using F9, when you leave you. projeettand then reload it, the breakpoints are all cleared. However, Stop statements formlpart o  the cod  and are only cle red when you delete them er put a single quote (') character in front to change them into a commeet. Make sure that once yoo have your code working properly, you remove all Stop statements.

 

teamlib

previous next