getFocusedCell

returns the id of a focused cell

string getFocusedCell();

Returns

stringthe id of a focused cell

Example

// setting focus on a cell
spreadsheet.selection.setFocusedCell("D4");
 
// getting the focused cell 
var focused = spreadsheet.selection.getFocusedCell(); // ->"D4"

See also
Back to top