NativeExcel2 for .Net Developer's Reference

IWorksheet.ActivateMethod

Makes the specified sheet the active sheet. Equivalent to clicking the sheet's tab.

[Visual Basic]
SubActivate()
[C#]
voidActivate();
[C++]
voidActivate();
[JScript]
functionActivate();

Example

This example activates worksheet one.

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

See Also

IWorksheet Interface | NativeExcel Namespace | IWorkbook.ActiveSheet Property | Select Method