我们如何返回一个范围内每个项目的 A1Notation?
function getA1Notation() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var s = ss.getSheetByName('Sheet1');
var range = s.getRange('A1:B3');
for (var row in range) {
for (var col in range[row])
Logger.log(range[row][col].getA1Notation());
}
};
我知道我们不能那样做,但这是我期待的结果......
A1 A2 A3 B1 B2 B3