![]() ![]() (I discuss watch expressions later in this chapter.) Set a watch statement that causes Word to enter break mode if a certain condition becomes true. This is generally preferred to using the Stop statement, because breakpoints are automatically removed when you close down the Visual Basic Editor, so you don’t need to remember to remove them, as you do with Stop statements. You may enter more than one breakpoint in a procedure. Word will place a red dot in the left margin in front of that line and will stop execution when it reaches the line. This is done by placing the cursor on that line and hitting the F9 key (or using the Debug menu). Insert a breakpoint on an existing line of executable code. Include a Stop statement in the code, which causes Word to enter break mode. Hit Ctrl-Break and choose Debug from the resulting dialog box. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |