Get Started
Documentation

GetRow

GetRow(val) → {number}

Get the number of the row for the selected cell.

Parameters:

Name Type Description
val string The cell from the current sheet to return the row number for.

Returns:

Type
number

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oRange = oWorksheet.GetRange("A9").GetRow();
oWorksheet.GetRange("A2").SetValue(oRange.toString());
builder.SaveFile("xlsx", "GetRow.xlsx");
builder.CloseFile();

Resulting document