GetCells
function GetCells(row: number = null, col: number = null): ApiRange
Description
Returns a Range object that represents all the cells in the specified range or a specified cell.
Parameters
- row
number
null The row number or the cell number (if only row is defined).
- col
number
null The column number.
Returns
ApiRange
Try It
var oWorksheet = Api.GetActiveSheet();
var oRange = oWorksheet.GetRange("A1:C3");
oRange.GetCells(2, 1).SetFillColor(Api.CreateColorFromRGB(255, 213, 191));