ActiveSheetIndex Property (Workbook)
Gets the active sheet index (the sheet on top).
public int ActiveSheetIndex {get; set;}
'Declaration
Public Property ActiveSheetIndex As Integer
'Usage
Dim instance As Workbook
Dim value As Integer
instance.ActiveSheetIndex = value
value = instance.ActiveSheetIndex
Property Value
The active sheet index (the sheet on top); -1 if no sheet is active.