setSelectedCells

selects the specified cell(s)

void setSelectedCells(string cells);

Parameters

cellsstringthe id(s) or a range of selected cell(s)

Example

// selecting a cell
spreadsheet.selection.setSelectedCells("B5");
// selecting a range of cells
spreadsheet.selection.setSelectedCells("B1:B5");
// selecting scattered cells
spreadsheet.selection.setSelectedCells("B7,B3,D4,D6,E4:E8");

See also
Back to top