I need to set formula to a range in A1Notation. The Error: TypeError: Cannot find function setFormula in object Range.
I want to find the last row of column F (continuos data), get the Row index then set formula from C1 to the last row. I figured out how to get the range. But I don't know why I can not set formula to that range.
ss.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.DOWN).activate();
var lr = ss.getCurrentCell().getRowIndex();
var fillDownRange = ss.getRange(9, 3, lr-8).getA1Notation();
fillDownRange.setFormula('=$F$7')
Please help me out here. Thanks in advance
var fillDownRange = ss.getRange(9, 3, lr-8); fillDownRange.setFormula('=$F$7');- ziganotschka