Share via


Workbook.ActiveSheet Property

Gets the active sheet (the sheet on top).

Namespace:  Microsoft.Office.Tools.Excel
Assemblies:   Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Syntax

'Declaration
ReadOnly Property ActiveSheet As Object
Object ActiveSheet { get; }

Property Value

Type: System.Object
The active sheet (the sheet on top); nulla null reference (Nothing in Visual Basic) if no sheet is active.

Remarks

If the workbook appears in more than one window, this property may be different in different windows.

.NET Framework Security

See Also

Reference

Workbook Interface

Microsoft.Office.Tools.Excel Namespace