a long time reader and first-time poster.I want to run the same script on 3 tabs of my worksheet. It currently works perfectly on one only but I am not sure how to run it by adding in 2 new sheet names. Not 100% familiar with the strings so I have copied the original script. It is based on adding a timestamp once column2 is ticked and removed if unticked. Here it is.
function onEdit(e) { var activeSheet = e.source.getActiveSheet(); if (activeSheet.getName() == "C&F Stage by task") { // Put the name of the specific worksheet between the quotation marks var aCell = e.source.getActiveCell(), col = aCell.getColumn(); if (col == 2) { // Number of the column with checkboxes var dateCell = aCell.offset(0,2); // In offset, put number of rows away (- is up, + is down) and number of columns away (- is left, + is right) if (aCell.getValue() === true) { var newDate = new Date(); dateCell.setValue(newDate); } else { dateCell.setValue(""); } } }}