Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Selection.GetSelection Method (Outlook)

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

Version Added: Outlook 2010

expression .GetSelection(SelectionContents)

expression A variable that represents a Selection object.

Parameters

Name

Required/Optional

Data Type

Description

SelectionContents

Required

OlSelectionContents

Specifies the kind of objects in the selection to return.

Return Value

A Selection object that contains the specified kind of objects that are selected in the active explorer.

Calling GetSelection with olConversationHeaders as the argument returns a Selection object that has the Location property equal to OlSelectionLocation.olViewList.

If the current view is not a conversation view, or, if Selection.Location is not equal to OlSelectionLocation.olViewList, calling GetSelection with olConversationHeaders as the argument returns a Selection object with Selection.Count equal to 0.

Show:
© 2015 Microsoft