Export (0) Print
Expand All
Expand Minimize

_Application.Selection property

Returns the selected object in the active window.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Object Selection { get; }

Property value

Type: System.Object

The returned object type depends on the current selection (for example, if a cell is selected, this property returns a Range object). The Selection property returns Nothing if nothing is selected.

Community Additions

ADD
Show:
© 2014 Microsoft