title: specific columns of selected row for print
body: <p>How to set specific columns of selected row  for print ? Google Apps Script - Google Sheets</p>
  <p>Where I select a row of the google sheet, the data of these columns should be printed by the macro (&quot;A&quot;, &quot;B&quot;, &quot;J&quot;, &quot;S&quot;).</p>
  <p>I've written this macro to select rows but I don't know how to make more changes required</p>
  <pre><code>function print() {
    var spreadsheet = SpreadsheetApp.getActive();
    var sheet = spreadsheet.getActiveSheet();
    sheet.getRange(spreadsheet.getCurrentCell().getRow(), 1, 1, sheet.getMaxColumns()).activate();
  
  }
  </code></pre>