It's come to my attention that GoogleClock no longer works on new sheets, anyway I can update the below code so it can update every minute:

Tried put =SheetNames(NOW())

It says not allowed. I'm very new to scripts, below script I found on here:

function SheetNames() { // Usage as custom function: =SheetNames( GoogleClock() )
   try {
     var sheets = SpreadsheetApp.getActiveSpreadsheet().getSheets()
     var out = new Array( sheets.length+1 ) ;
     //out[0] = [ "Name" , "gid" ];
     for (var i = 3 ; i < sheets.length+1 ; i++ ) out[i-7] = [sheets[i-1].getName()];
     return out
    }
    catch( err ) {
       return "#ERROR!"
       SheetNames.flush();
    }
}
New contributor
Chris is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

Chris is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.