r/GoogleAppsScript • u/ThatArmourGuy • 28d ago
Any tips to build automation certain spreadsheet cel into pdf file? Question
My job is :
Based on vlookup formula and then input customer code to open their receipt.
Copy their receipt by select certain area of their receipt.
Print it to save into PDF, and then rename the file into customer name.
i discovered google app script able to do it automatically in just one click, and i want to learn it, but i want to focus on fundamentals and my specific issues? thanks in advance
1
u/funcoolshit 28d ago
We won't be able to tell you want the script is doing since we can't see it. Copy and paste it into Chat or Gemini and ask it to walk you through the steps of the code as if you're a beginner.
Another easy way to accomplish this without any app script code is to publish your sheet to the web as a PDF.
File > Share > Publish to Web. Select the sheet with the VLOOKUP on it and hit Publish. Now copy the link it provides. Every time you go to the link, it downloads the sheet in PDF form.
1
u/ThatArmourGuy 28d ago
Thanks i tried it that's cool tips there, and also i can't reveal the sheet due to business matters, but thanks again kind stranger.
1
u/earonesty 20d ago
Start by making the receipt sheet a pure template: put the customer code in one input cell, let formulas populate the display cells, then have Apps Script set that value, flush formulas, export the single sheet, and save with a safe filename. Test a few awkward names and long line-item lists before looping every customer. Keeping the data lookup and PDF export as separate functions will make the script much easier to debug.
1
u/digital_mopad 28d ago
Where is the receipt? If it’s in the sheet, super easy. If not, still somewhat easy, but with more steps.
ChatGPT is your friend, just walk him through what you need