Skip to main content

setSelectedCell()

selects the specified cell(s)

setSelectedCell(cell: string);

Parameters:

cell: string - the id(s) or a range of selected cell(s)

Example

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

Related articles

Work with Spreadsheet