Autofill Script Google Spreadsheet Script

前端 未结 1 1679
温柔的废话
温柔的废话 2020-12-18 15:13

I need you to help me out with this. I need a script on my Google Spreadsheet.

I need the script to do exactly what CTRL+A, CTRL+

相关标签:
1条回答
  • 2020-12-18 15:49

    Something following should work:

      var oneRowCopy = sheet.getRange(1,1,1, sheet.getLastColumn());
      var targetRows = sheet.getRange(2,1,sheet.getLastRow()-1, sheet.getLastColumn());
      oneRowCopy.copyTo(targetRows);
    
    0 讨论(0)
提交回复
热议问题