The Outlook Object Browser


To make finding objects in the Outlook object model easier, Outlook provides an object browser, shown in Figure 6-2. The Object Browser lists the available Outlook objects with their methods and properties. You can add an object to your code by clicking the Insert button. Clicking Object Help opens the Outlook object library help file.

click to expand
Figure 6-2: The Outlook Object Browser, which is accessible from the Script Editor and allows you to insert objects into your code and get help on objects.

Outlook provides an object browser only for the Outlook object library, not for the Microsoft Forms 2.0 object library. To browse the objects contained in this library, you must use the VBA Object Browser from another product or within Outlook. Also, because the Microsoft Forms 2.0 object library is shared across the Office applications, you do not need to add a reference to this library in the Object Browser: the library is added by default to the VBA Object Browser. The following steps explain how to view the Microsoft Forms 2.0 object library from Outlook. You can use the same steps in other Office applications.

  1. From the Tools menu, choose Macro and then Visual Basic Editor.

  2. From the View menu, choose Object Browser.

  3. To view the Microsoft Forms 2.0 object library, select MSForms from the Project/Library drop-down list, as shown in Figure 6-3. (If you don't see MSForms in your drop-down list, add it to your references, as explained in the next step.)

    click to expand
    Figure 6-3: The VBA Object Browser being used to view the Microsoft Forms 2.0 object library

  4. To view other object libraries, such as the Outlook object library, you must add a reference to the library: from the Visual Basic Editor Tools menu, choose References. Select the library you want to add as a reference. For Outlook, select Microsoft Outlook 11.0 Object Library and then click OK. For Forms 2.0, you can browse to c:\ windows \system32\fm20.dll.

  5. In the Project/Library drop-down list, select Outlook to view only the Outlook object library.




Programming Microsoft Outlook and Microsoft Exchange 2003
Programming MicrosoftВ® OutlookВ® and Microsoft Exchange 2003, Third Edition (Pro-Developer)
ISBN: 0735614644
EAN: 2147483647
Year: 2003
Pages: 227
Authors: Thomas Rizzo

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net