SetOffset
function SetOffset(nRow: number = null, nCol: number = null): void
Description
Sets the cell offset.
Parameters
- nRow
number
null The row number.
- nCol
number
null The column number.
Returns
void
Try It
var oWorksheet = Api.GetActiveSheet();
oWorksheet.GetRange("B3").SetValue("Old Range");
var oRange = oWorksheet.GetRange("B3");
oRange.SetOffset(2, 2);
oRange.SetValue("New Range");