NativeExcel for .Net Developer's Reference

IRange.SelectMethod

Selects the cells in the specified range.

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

Example

This example selects cells A1:B3 on sheet one.

[C#]
 book.Worksheets[1].Range["A1:B3"].Select();
[VisualBasic]
 book.Worksheets(1).Range("A1:B3").Select()
[C++]
 book->Worksheets->Item[1]->Range->Item[S"A1:B3"]->Select();

See Also

IRange Interface | NativeExcel Namespace | Selection Property