Update Google Sheet “Filter View” w/ New Range
问题 I have a spreadsheet with various filter views set in place. Normally this works great but occasionally new rows are added and I have to manually update the range in each filter view. I've tried searching for solutions online and came up with the following code that might update the range: function UpdateFilterView() { var dataSheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Data'); //for each (var dataSheet in sheets){ var lastRow = dataSheet.getLastRow(); var lastColumn =