Is there an option to copy a Google Sheets table to a Google Doc as a Linked Object via Google Apps Script? What I usually do manually:
- Select Range in Google Sheet
- Press Cmd + C
- Go to Google Doc
- Press Cmd + V
- Select Paste as Linked Object
I want to automate this via Google Apps Script and have tried appendTable()
or insertTable()
but they both just paste the Values of the Sheets Table but not the formatting. And the table is also not linked to the original Google Sheet.
Is there a way to do this?
If there's no built-in method for this, is there a way for GUI automation in Google Apps Script like with PyAutoGUI in Python?
Thank you in advance!