Working with Microsoft Outlook Objects

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