This code will automatically create new google sheet ,if google sheet with same name already exists then sheet with same name automatically deleted and create new one.
function onOpen() {
//Get active spreadsheet
var activeSpreadsheet = SpreadsheetApp.getActiveSpreadsheet();
//Giving name of your new sheet
var NewSheet = activeSpreadsheet.getSheetByName("Name of your sheet");
//Check if sheet exists with same name,if exist then this code will delete existing sheet
if (yourNewSheet != null) {
activeSpreadsheet.deleteSheet(NewSheet);
}
NewSheet = activeSpreadsheet.insertSheet();
NewSheet.setName("Name of new sheet");
}
Very good article. I am dealing with a few of these issues as well.. Kayley Gayelord Jensen
Wonderful beat ! I would like to apprentice while you amend your web site, how could i subscribe for a blog website? The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear idea Inga Baxy Bruckner