Selection Members (Outlook)

GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Contains the set of Outlook items currently selected in an explorer.

Methods

Name

Description

GetSelection

Returns a Selection object that contains the kind of objects specified by the SelectionContents parameter, and that are currently selected in the active explorer.

Item

Returns a Microsoft Outlook item or conversation header from the selection.

Properties

Name

Description

Application

Returns an Application object that represents the parent Outlook application for the object. Read-only.

Class

Returns an OlObjectClass constant indicating the object's class. Read-only.

Count

Returns a Long that indicates the number of items or conversation headers in the selection. Read-only.

Location

Returns an OlSelectionLocation constant that specifies where in the Microsoft Outlook user interface the current selection is. Read-only

Parent

Returns the parent Object of the specified object. Read-only.

Session

Returns the NameSpace object for the current session. Read-only.