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
- Understanding the Application and NameSpace Objects
Learn how to use the Application object's CreateItem method to create a new Microsoft® Outlook® item and access existing Outlook items by using the NameSpace object. - Working with Outlook Folders and Items
Access folders for any built-in Microsoft® Outlook® item. - Understanding the Explorer and Inspector Objects
Open the Explorer and Inspector objects programmatically, and display items for the user. - Understanding VBA in Outlook
Associate a Microsoft® Visual Basic® for Applications (VBA) project as code behind an individual Microsoft® Office XP document. - Understanding Events in Outlook
Work with application-level events associated with the application itself or top-level objects within the application or item-level events associated with a particular Microsoft® Outlook® item.
Related Sections
- Working with Office Applications
Take advantage of different objects, collections of objects, properties, methods, and events to build your application. - Working with Microsoft Access Objects
Use Form, Report, and DataAccessPage objects and the controls they contain to format and display data and make it possible to add or edit data in a database. - Working with Microsoft Excel Objects
Use Microsoft® Visual Basic® for Applications (VBA) to work with Microsoft® Excel objects, from within either Excel itself or another Microsoft® Office XP application to gain access to every part of Excel. - Working with Microsoft FrontPage Objects
Create, deploy, modify, and manage Web sites using Microsoft® FrontPage®. - Working with Microsoft PowerPoint Objects
Automate Microsoft® PowerPoint® by using the Application object, from which you can open an existing Presentation object or create a new presentation. - Working with Microsoft Project Objects
Build powerful custom applications easily with the Microsoft® Project object model. - Working with Microsoft Word Objects
Use Microsoft® Visual Basic® for Applications (VBA) to work with the Microsoft® Word Document object, Application object, and Documents collection. - Working with Microsoft Visio Objects
Design, model, and manage complex enterprise-level systems with the sophisticated toolset provided by Microsoft® Visio® products.