NativeExcel for .Net Developer's Reference

IWorksheet.SelectMethod

Selects the worksheet.

Overload List

Selects the specified worksheet and deselects any previously selected worksheets.

[Visual Basic] SubSelect()
[C#] voidSelect();
[C++] voidSelect();
[JScript] functionSelect();

Selects the specified worksheet.

[Visual Basic] SubSelect(ByValBoolean)
[C#] voidSelect(bool);
[C++] voidSelect(bool);
[JScript] functionSelect(bool);

Example

This example selects worksheet one and two.

[C#]
book.Worksheets[1].Select(); 
book.Worksheets[2].Select(false); 
[VisualBasic]
book.Worksheets(1).Select()
book.Worksheets(2).Select(False)
[C++]
book->Worksheets->Item[1]->Select();
book->Worksheets->Item[2]->Select(false);

See Also

IWorksheet Interface | NativeExcel Namespace | Selected Property | Activate Method