Workbook.ActiveSheet Property
Gets the active sheet (the sheet on top).
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Syntax
'Declaration
ReadOnly Property ActiveSheet As Object
Get
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.