Microsoft Office 2000/Visual Basic Programmer's Guide |
You can create custom Outlook objects and manipulate those objects from within Outlook or from another application. This section discusses how to manipulate Outlook objects by using VBA code from within Outlook or from another Office application by using Automation. The Microsoft Outlook object model exposes Outlook objects, which you can use to gain programmatic access to Outlook functionality. Before you use VBA to access Outlook objects, methods, or properties from another application, you must first set a reference to the Microsoft Outlook 9.0 object library by clicking References on the Tools menu in the Visual Basic Editor.
Note You can view the entire Outlook object model in the Object Model Guide. You can also use Microsoft Outlook Visual Basic Reference Help to learn more about individual objects, properties, methods, and events. For more information about using VBA to work with an Office application's object model, see Chapter 4, "Understanding Office Objects and Object Models."