title: Copy to clipboard function in Google sheets
body: <p>I want to write a simple Google function to copy columns <code>A</code> to <code>V</code> of a Google Sheets to the clipboard to use in another application.</p>
  
  <p>I have the following code so far, but I need to get the contents to the clipboard, what command would I use?</p>
  
  <pre><code>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')
  }
  </code></pre>