google spreadsheet - setFormula() in script editor with spaces in sheets referenced by the formula -


when put formula on script editor using setformula() function, formula contains spaces 'abc list'!, shows syntax error when script saved.

i saw answers mention putting + till looks '+abc list+'! didnt work (and if did, formula wouldn't work on normal cell).

i'm curious - there no way write formulas reference sheets spaces in names in script editor?

both of these work:

spreadsheetapp.getactive().getsheetbyname('reports').getrange("g14").setformula('\'january 2017\'!a1'); spreadsheetapp.getactive().getsheetbyname('reports').getrange("g15").setformula("'january 2017'!a1"); 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -