2016-11-23 20 views
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()相同的功能,一切工作正常。

我的直覺是,我失去了具體的關於意見的東西... ...

回答

相關問題