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,