Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 1.48 KB

Outlook.Explorer.ClearSelection.md

File metadata and controls

42 lines (24 loc) · 1.48 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Explorer.ClearSelection method (Outlook)
vbaol11.chm3312
vbaol11.chm3312
Outlook.Explorer.ClearSelection
2809b5fb-961e-fb2a-a74d-fffa4484c838
06/08/2017
medium

Explorer.ClearSelection method (Outlook)

Cancels any selection in the active explorer.

Syntax

expression. ClearSelection

expression A variable that represents an 'Explorer' object.

Remarks

After the ClearSelection method is called, the Count property of the Selection object that the Explorer.Selection property returns is zero. Then, the SelectionChange event fires unless prior to calling of ClearSelection, the current view did not contain any items, the current folder was empty, or the Count property was already zero.

If the Reading Pane is visible and the current view is a table view, calling ClearSelection renders the Reading Pane blank.

If the current view or current folder does not contain any items, calling ClearSelection does not result in any change to the selection and does not fire the SelectionChange event.

ClearSelection returns an error if the item is being edited in the current view.

See also

Explorer Object

[!includeSupport and feedback]