我对这件事不熟悉。查了一下医生,谷歌了一下,但找不到我想要的东西。
使用Google脚本,
我想要一个单元格对象,它靠近当前对象的左边。
var sheet = SpreadsheetApp.getActive();
var cell = sheet.getCurrentCell()
// var priceColumn = cell.getColumn()-1;
// var strategyColumn = cell.getColumn()-2;
cell.left?
基本上,我需要的是肚脐和右边,从现在的牢房上下移动..?
发布于 2021-03-20 20:10:51
您正在寻找偏移函数:
示例:
var sheet = SpreadsheetApp.getActive();
var cell = sheet.getCurrentCell();
var newCell = cell.offset(0, 1); // cell to the right
var newCell = cell.offset(0, -1); // cell to the left
var newCell = cell.offset(1, 0); // cell below
var newCell = cell.offset(-1, 0); // cell above
offset(rowOffset, columnOffset)
:
https://stackoverflow.com/questions/66728722
复制相似问题