I'm trying to create a button that will delete selected cells across 4 sheets. I've searched all over for a script that does this and I cant find one. Im trying to delete cell A2:BC51 across sheet1, Sheet2, Sheet3, Sheet4 with one button. Thanks for your help!
This is the closest I could find to what im looking for:
function clearRange() {
//replace 'Sheet1' with your actual sheet name
var sheet = SpreadsheetApp.getActive().getSheetByName('Sheet1');
sheet.getRange('A2:BC51').clearContent();
}