How to stop code from moving two rows at a time when checkbox is true?
问题 I'm working on a spreadsheet for my boss and I've been trying to add a feature where the entire row moves from Sheet1 to Sheet2 when the checkbox in column1 is checked. The code I'm using works, except sometimes it moves two rows at once even though only one box is checked. Here's my code: function onEdit(event) { // assumes source data in sheet named Sheet1 // target sheet of move to named Sheet2 // test column with yes/no is col 1 or A var ss = SpreadsheetApp.getActiveSpreadsheet(); var s =