GetRow
Returns a row number for the selected cell.
Syntax
expression.GetRow();
expression
- A variable that represents a ApiRange class.
Parameters
This method doesn't have any parameters.
Returns
number
Example
This example shows how to get a row number for the selected cell.
- Code
- Result
let worksheet = Api.GetActiveSheet();
let range = worksheet.GetRange("A9").GetRow();
worksheet.GetRange("A2").SetValue(range.toString());