[]
Selects the worksheet.
If replace is true, the current selection is replaced with this
worksheet. If replace is false, this worksheet is added to the
current selection.
void Select(bool replace = true)
Sub [Select](Optional replace As Boolean = True)
| Type | Name | Description |
|---|---|---|
| bool | replace |
true
to replace the current selection with this worksheet; false to extend the current selection to include this worksheet.
|
workbook.Worksheets.Add();
IWorksheet sheet2 = workbook.Worksheets[1];
worksheet.Select(true);
sheet2.Select(false);