_Application.ActiveCell Property

Returns a Range object that represents the active cell in the active window (the window on top) or in the specified window. If the window isn't displaying a worksheet, this property fails.

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

Syntax

'Declaration
ReadOnly Property ActiveCell As Range
    Get
'Usage
Dim instance As _Application
Dim value As Range

value = instance.ActiveCell
Range ActiveCell { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.Range

Remarks

Be careful to distinguish between the active cell and the selection. The active cell is a single cell inside the current selection. The selection may contain more than one cell, but only one is the active cell.

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Excel Namespace