Display Method

Applies To

AppointmentItem object, ContactItem object, Explorer object, Inspector object, JournalItem object, MailItem object, MAPIFolder object, MeetingRequestItem object, NoteItem object, PostItem object, RemoteItem object, ReportItem object, TaskItem object, TaskRequestItem object.

Description

MAPIFolder object: Displays a new Explorer object for the folder.

Outlook items: Displays a new Inspector object for the item.

Inspector and Explorer objects: Displays the existing inspector or explorer.

Syntax 1

expression.Display

Syntax 2

expression.Display(Modal)

expression An expression that returns an Explorer or MAPIFolder object (Syntax 1) or an Outlook item or Inspector object (Syntax 2).

Modal Optional Boolean. True to make the inspector modal. The default value is False.

Example

This example displays the default Inbox folder.

Set myFolder = olNameSpace.GetDefaultFolder(olFolderInbox)
myFolder.Display
This example displays the first item in the Inbox folder.

Set myFolder = olNameSpace.GetDefaultFolder(olFolderInbox)
myFolder.Items(1).Display