getSelectedCells

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

string getSelectedCells();

Returns

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

Example

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

See also
Back to top