Page 78 - Excel for Scientists and Engineers: Numerical Methods
P. 78

CHAPTER 2     FUNDAMENTALS OF PROGRAMMING WITH VBA                    55





























                                  Figure 2-27.  The VBA Add Watch dialog box.
                   To see the values of the  selected variables or expressions, you  must be  in
                Step  mode.  The  variables  will  be  listed  in  the  Watches  pane  (Figure  2-28),
                which  is  usually  located  below  the  Code window.  The current  values  of the
                variables will be displayed as you step through the code.

















                                    Figure 2-28.  The VBA Watches pane.
                   To remove  a variable  or expression from the  Watches window, select it in
                the Watches window, choose Edit Watch  from the Debug menu and press the
                Delete button.  Or you can simply select it in the Watches window and press the
                Delete key.
                   Watch expressions are not saved with your code.
   73   74   75   76   77   78   79   80   81   82   83