0

I'm losing my mind. I have a workbook and use a script I got from here to print various reports (link to original at top of script). Works great. Started another workbook for another project and literally copy/pasted the script and I get an error that my variable is not defined. But it looks like it is!

Here's a copy of the problem spreadsheet. Trying to run the code printFriday. printSaturday is in the menu but I haven't done the script yet because Friday won't work. I even changed the print range to match the copied from code in case my column and row numbers (of the data I want to print) were causing a problem.

Here's the code I use in the other spreadsheet that works. I can't share that workbook as too much personal information.

Please ignore the notes I make for myself as scripting isn't really my thing.

Help? What am I missing? Thanks,

  • Now, I noticed your script from your showing URL. When I saw your script, it seems that the function of `objectToQueryString` is not declared. I think that this is the reason for your issue of `ReferenceError: objectToQueryString is not defined`. How about adding the function? Your `objectToQueryString` comes from [this answer](https://stackoverflow.com/a/59085050)? – Tanaike Apr 28 '22 at 00:35
  • Sorry to take so long to get back to this but thanks, that little bit of code did the trick! – Missy Goldberg Apr 10 '23 at 14:17

0 Answers0