我需要在A1Notation中将公式设置为一个范围。错误: TypeError:无法在对象范围内找到函数setFormula。
我想要找到F列的最后一行(连续数据),获得行索引,然后将公式从C1设置到最后一行。我想出了如何得到射程。但我不知道为什么我不能将公式设置为该范围。
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')请帮帮我。提前感谢
发布于 2019-09-19 10:25:10
function runOne(){
var ss=SpreadsheetApp.getActive().getActiveSheet();
ss.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.DOWN).activate();
var lr=ss.getCurrentCell().getRowIndex();
ss.getRange(9, 3, lr-8,1).setFormula('=$F$7');
}https://stackoverflow.com/questions/57991363
复制相似问题