The information that appears
in the Object box and Procedure/Events box applies to the code in the pane that has the focus.
Dragging the bar to the top or the bottom of the window or double-clicking the bar restores
the pane to its original single-pane view.
CHAPTER 1 n THE MACRO RECORDER AND CODE MODULES 9
Figure 1-11. Code window with split panes
In addition to these items, there are a few other windows to help you write and test your
code: the Immediate window, the Locals window, and the Watch window.
The Immediate Window
The Immediate window (Figure 1-12) allows you to do the following:
??? Type or paste a line of code and press Enter to run it
??? Copy and paste the code from the Immediate window into the code window, but not
save code in the Immediate window
Figure 1-12. The Immediate window
CHAPTER 1 n THE MACRO RECORDER AND CODE MODULES 10
The Immediate window can be dragged and positioned anywhere on your screen unless
you have made it a dockable window from the Docking tab of the Options dialog box.
You can close the window by clicking the Close box. If the Close box is not visible, doubleclick
the Title bar to make the Close box visible, and then click it.
nNote In break mode, a statement in the Immediate window is executed in the context that is displayed
in the Procedure box. For example, if you type Print variablename, your output will be the value of
variablename. This is the same as if the Print method had occurred in the procedure you were executing.
Pages:
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37