Share via


Working with Microsoft Outlook Objects

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

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 . 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."