2
我試圖做一個基本的Google腳本函數,刪除第一個單元格上的註釋。 這不起作用:Google電子表格腳本方法是否清除({commentsOnly})刪除範圍上的註釋無效?
function deleteCommentinCellA1() {
// Get cell A1 on the first sheet
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
var cell = sheet.getRange("A1");
cell.clear({commentsOnly : true});
}
即使其他clear(options) provided by Google script做工精細。我嘗試刪除格式,內容甚至檢查了其他方法clearNotes()
相同的功能,一切工作正常。
我的直覺是,我失去了具體的關於意見的東西... ...
THX。 所有遇到此問題的人都應該關注您的鏈接並進行投票。 我在第一個Google Apps腳本中收到了一個已知的錯誤...壞兆頭? :) – Ploulack