• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Browsing an Object Model

When you are within an application's VBA IDE (usually launched by pressing Alt+F11) and you press F2, you launch the object browser. In the upper-right corner of the object browser window, you will find a drop-down list. This is the Project/Library list box. By default, this lists <All Libraries> as the selection. This means that the information shown in the Classes list at the left of the object browser and the Members of Class list at the right of the object browser are from all attached libraries and object models, as set in the References dialog box. To begin understanding the object model for any given VBA-enabled application, you should limit the listing to that application's object model. This is done by selecting that object model from the Project/Library list box.

The Classes list will now display only the objects for that application. As you select an object, say, the application object, you will see members of that particular class object displayed. Selecting a member of that class will display details about that member in the details pane at the bottom of the object browser. This shows you whether it is a property (the small hand holding a property sheet), a method (a smell green brick being thrown), or an event (a small yellow lightning bolt). Additional items include constants and classes. The details pane shows you the syntax for that item's usage as well as of which class it is a member. To obtain help about that particular item, press F1 and a help browser will be launched to give you full assistance in understanding that item. This help is contingent upon the software author's help implementation. Both Visio and Microsoft have taken great care to create quality, robust, and example-rich help for all items in their help systems.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint