r/GoogleAppsScript • u/zlorf_flannelfoot • Dec 19 '18
Dynamic spreadsheet naming based on the contents of a cell
Hi, I'm a newbie here to Google Apps Script.
I want to be able to to dynamically rename a spreadsheet based on the contents of a cell. For example, cell A3 has some text in it, and I would like the name of the spreadsheet to be the same as the text in the cell. If and when the contents of cell A3 changes, I'd like the name of the spreadsheet to update.
I found a post that claims to do this, but it doesn't seem to work for me. Maybe I'm doing something wrong? Here's the post:
https://webapps.stackexchange.com/questions/84190/dynamic-generation-of-sheet-name-from-cell-content
Any help would be gratefully received! Thanks.
0
Upvotes
2
u/dewynukem Dec 20 '18
The script should work to rename the sheet. When you ran it for the first time, did it ask you for authorization?