Worksheet.SelectRange

Worksheet.SelectRange method

Selects a range.

public void SelectRange(int startRow, int startColumn, int totalRows, int totalColumns, 
    bool removeOthers)
ParameterTypeDescription
startRowInt32The start row.
startColumnInt32The start column
totalRowsInt32The number of rows.
totalColumnsInt32The number of columns
removeOthersBooleanTrue means removing other selected range and only select this range.

See Also