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 Microsoft® Outlook® objects and manipulate those objects from within Outlook or from another application. You can manipulate Outlook objects by using Microsoft® Visual Basic® for Applications (VBA) code from within Outlook or another Microsoft® Office XP application by using Automation. The 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 object library by clicking References on the Tools menu in the Visual Basic Editor.

In This Section