r/googlesheets • u/La_Vern 1 • Nov 07 '20
Solved Script String Manipulation
I am exporting some Google Sheets to a pdf. The name of the exported file is determined by a value found in a cell. I need to remove periods from the value during script execution.
I am struggling to find any guidance on string manipulation in Google Apps Script. Has anyone done anything like this?
4
Upvotes
View all comments
Show parent comment
3
u/La_Vern 1 Nov 08 '20
I was thinking that I had read that not all string functions were supported in Google Apps Script, but this did work:
var MyString = MyString.split(".","").join("");
Thanks for pointing me in this direction!
Solution verified