Copying google spreadsheet columns from one spreadsheet to another with a script

后端 未结 3 1782
日久生厌
日久生厌 2021-02-10 14:17

I\'d like to be able to copy a colum (well 3) from a spreadsheet to another spreadsheet (google docs spreadsheets). I\'d also like there to be some sort of trigger that looks fo

3条回答
  •  眼角桃花
    2021-02-10 14:37

    Since you are copying the data into the other spreadsheet you have to specify the other spreadsheet's range object. So, instead of your last line:

    var target_range = target_sheet.getRange("A1:B2");

    source_range.copyTo(target_range);

提交回复
热议问题