GetActiveCell
Returns an object that represents an active cell.
Syntax
expression.GetActiveCell();
expression
- A variable that represents a ApiWorksheet class.
Parameters
This method doesn't have any parameters.
Returns
Example
This example shows how to get an object that represents an active cell.
- Code
- Result
// How to get selected active cell.
// Get an active cell and insert data to it.
let worksheet = Api.GetActiveSheet();
let activeCell = worksheet.GetActiveCell();
activeCell.SetValue("This sample text was placed in an active cell.");