Gets or sets the active sheet in the component.
Syntax
'Declaration
<System.ComponentModel.DefaultValueAttribute()>
Public Property ActiveSheet As Worksheet
'Usage
Dim instance As Workbook
Dim value As Worksheet
instance.ActiveSheet = value
value = instance.ActiveSheet
[System.ComponentModel.DefaultValue()]
public Worksheet ActiveSheet {get; set;}
Property Value
The active sheet in the workbook.
Exceptions
Exception | Description |
System.ArgumentException |
The specified sheet is not in the collection.
|
See Also