I want to write a simple Google function to copy columns A
to V
of a Google Sheets to the clipboard to use in another application.
I have the following code so far, but I need to get the contents to the clipboard, what command would I use?
function onOpen() {
SpreadsheetApp.getUi()
.createMenu('Custom Menu')
.addItem('Copy Col A to V', 'copycolsAtoV')
.addToUi();
}
function copycolsAtoV() {
var ss = SpreadsheetApp.getActiveSheet();
ss.getRange('A:V')
}