我想将数据从一个Google工作表复制到同一工作簿中的另一工作表,然后返回并删除数据,然后下次我触发宏时,我希望数据移至另一工作表但要插入一行从上一个触发器
function postclear() {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.getRange('A4:C4').activate();
spreadsheet.setActiveSheet(spreadsheet.getSheetByName('posted'), true);
spreadsheet.getRange('B4').activate();
spreadsheet.getRange('input!A4:C4').copyTo(spreadsheet.getActiveRange(), SpreadsheetApp.CopyPasteType.PASTE_NORMAL, false);
spreadsheet.setActiveSheet(spreadsheet.getSheetByName('input'), true);
spreadsheet.getActiveRangeList().clear({contentsOnly: true, skipFilteredRows: true});
spreadsheet.getRange('C31').activate();
};