Specifies the Sheet object to be selected. The Sheet object must be in the active section.
Specifies whether or not the current selection is replaced with a new selection that consists of the specified sheet. If False, the current selection is extended to include any previously selected sheet and the specified sheet.
Description
Selects a specified sheet.
Syntax
Visual Basic
Public Sub SelectSheet( _
ByVal Sheet As Variant, _
Optional ByVal Replace As Variant _
)
Parameters
Sheet
Specifies the Sheet object to be selected. The Sheet object must be in the active section.
Replace
Specifies whether or not the current selection is replaced with a new selection that consists of the specified sheet. If False, the current selection is extended to include any previously selected sheet and the specified sheet.