I have a Google Apps Script function I've written to perform mail merges from data in a Google Sheet. I enter the document ID and relevant cells into the function (hard-coding them), and when the function runs, it creates a new Google Doc containing the mail merge. It's time-consuming to hard-code the info about every spreadsheet with which I want to perform a mail merge. I'm looking for a way to automate this process and save myself the time. What I think would be best is if I could create a menu item that would automatically be available in every Google Sheet I ever opened, and when I clicked it would automatically run the function based on the info for that specific Google Sheet. I don't know if this possible, but please let me know if it is. If not, any other idea for how I can avoid hard-coding the spreadsheet info each time would be very helpful and appreciated. Thanks!!
↧