Udostępnij za pośrednictwem


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

See Also

Reference

Workbook Interface

Microsoft.Office.Tools.Excel Namespace