How do I restrict a trigger to a specific sheet/tab?
问题 I have written a script in google sheets that will change the time stamp in the selected cell anytime the entire spreadsheet is updated at all. However, I need the timestamp to only update when one single sheet(tab) is updated. Here is my current function: function onEdit() { var sheetActive = SpreadsheetApp.getActiveSpreadsheet() .getSheetByName("Board") .getRange('A28') .setValue(new Date()); } The name of the sheet(tab) that I want to check for an update in is "Input" and the specific cell