In the macro, I select a range in google sheet (this range can contain any type of data) and I want to copy it to the clipboard using the library Clipboard.js. How to do this ?
Asked
Active
Viewed 504 times
-1
-
Welcome to [so]. Please show what you tried and add a brief description of your search efforts as is suggested in [ask] – Rubén Apr 05 '21 at 14:03
-
Possible duplicate [importing external javascript to google apps script]( https://stackoverflow.com/q/18646554/1595451) – Rubén Apr 05 '21 at 14:07
-
Does this answer your question? [importing external javascript to google apps script](https://stackoverflow.com/questions/18646554/importing-external-javascript-to-google-apps-script) – Rafa Guillermo Apr 05 '21 at 14:54
1 Answers
1
Google Apps Script runs in Google's servers, not in your computer. There is no access to local resources like the clipboard.
To send spreadsheet data to Clipboard.js, you will have to open a dialog box or a sidebar. See the HTML Service guide.
To access spreadsheet data from your JavaScript code, see the client-server communication guide.

doubleunary
- 13,842
- 3
- 18
- 51