Microsoft Office Tutorials and References
In Depth Information
3.3 The Code Window
3.3 The Code Window
The Code window displays the code that is associated with the selected item in the Project
window. To view this code, select the object in the Projects window and either choose Code from
the View menu or hit the F7 key. For objects with only a code component (no visual component),
you can just double-click on the item in the Projects window.
3.3.1 Procedure and Full-Module Views
Generally, a code module (standard, class, or UserForm) contains more than one procedure. The
IDE offers the choice between viewing one procedure at a time (called procedure view ) or all
procedures at one time (called full-module view ), with a horizontal line separating the procedures.
Each view has its advantages and disadvantages, and you will probably want to use both views at
different times. Unfortunately, Microsoft has not supplied a menu choice for selecting the view.
To change views, we need to click on the small buttons in the lower-left corner of the Code
window. (The default view can be set using the Editor tab of the Options dialog box.)
Incidentally, the default font for the module window is Courier, which has a rather thin looking
appearance and may be somewhat difficult to read. You may want to change the font to FixedSys
(on the Editor Format tab of the Options dialog, under the Tools menu), which is very readable.
3.3.2 The Object and Procedure List Boxes
At the top of the Code window, there are two drop-down list boxes (see Figure 3-1 ) . The Object
box contains a list of the objects (such as forms and controls) that are associated with the current
project, and the Procedure box contains a list of all of the procedures associated with the object
selected in the Object box. The precise contents of these boxes varies depending on the type of
object selected in the Project Explorer.
Search JabSto ::

Custom Search