0

I'm new to google scripts and I'm trying to copy specific range of columns to another sheet. This is the code

function helpFunction() {
  
 const sss = SpreadsheetApp.getActiveSpreadsheet();
  const ts = sss.getSheetByName('this');
  const ss = sss.getSheetByName('source');

  const rawData = ss.getRange("A:F").getValues(); // HERE - i just need columns B,C,E,F instead of all from a to f

  const frawData=rawData.filter(row=>row[0]>0);
  ts.getRange(ts.getLastRow()+1, 1, frawData.length, frawData[0].length).setValues(frawData);

}

If there's someone who could help me I will be more than glad.

Nicola
  • 3
  • 2

0 Answers0