NativeExcel2 for .Net Developer's Reference

IWorksheet.SelectMethod()

Selects the specified worksheet and deselects any previously selected worksheets.

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

Example

This example selects the worksheet one.

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

See Also

IWorksheet Interface | NativeExcel Namespace | IWorksheet.Select Overload List | Selected Property | Activate Method