Answers for "script editor google sheets create new sheet"

0

script editor google sheets create new sheet

function onOpen() {
    var activeSpreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    var yourNewSheet = activeSpreadsheet.getSheetByName("Name of your new sheet");

    if (yourNewSheet != null) {
        activeSpreadsheet.deleteSheet(yourNewSheet);
    }

    yourNewSheet = activeSpreadsheet.insertSheet();
    yourNewSheet.setName("Name of your new sheet");
}
Posted by: Guest on September-17-2021

Code answers related to "script editor google sheets create new sheet"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language