Skip to main content

getSelectedCell()

returns the id(s) of selected cell(s)

getSelectedCell(): string;

Returns:

The id(s) or a range of selected cell(s).

Example

spreadsheet.selection.setSelectedCell("B7,B3,D4,D6,E4:E8");

var selected = spreadsheet.selection.getSelectedCell(); // -> "B7,B3,D4,D6,E4:E8"

Related articles

Work with Spreadsheet