getSelectedRange
returns the range of selected cells
string getSelectedRange();
| string | the selected range (or multiple ranges) |
Example
// returns a single range
const range = $$("ssheet").getSelectedRange(); // -> "C4:D6"
// returns multiple ranges
const range2 = $$("ssheet").getSelectedRange(); // -> "A1:C3;B4:D5"
Details
The returned range can be:
- a string of cell references that refer to the first and the last cells of the range: "C4:D6"
- multiple ranges with a semicolon as delimiter: "A1:C3;B4:D5"
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.