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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -