Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Remarks

Each object in the array should be an int or a string. If it is an int, the worksheet at the specified position will be selected. If it is a string, the worksheet with the specified name will be selected.

If the array is empty, there will be no effect. The worksheets that were previously selected will still be selected.

The last object in the array specifies the worksheet that will be visible when first opened in Excel. The other parameters specify the worksheets that will be selected, but will not be displayed in the main Excel window when you first open the file.

Example
Code Block
csharp
csharp
titleC#
sheets.Select(arrSheets);
Code Block
vb.net
vb.net
titlevb.net
sheets.Select(arrSheets)