26.3. Understanding General Methods for Working with Outlook Objects

Many of the objects in Outlook use the methods covered in this section. You'll see brief examples showing you how to use the methods, as well as further examples on the individual types of objects — e-mail messages, appointments, contacts, tasks, and so on — later in this chapter and in the next.

26.3.1. Using the Display Method

To open an item in an inspector window, use the Display method. The syntax is as follows:

expression .Display(Modal)

Here, expression is a required expression that returns the type of object you want to display — for example, a ContactItem object or a MailItem object. Modal is an optional Variant argument that you can set to True to make the window ...

Get Mastering VBA for Microsoft Office 2007, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.