Google Apps Script to VMerge tables WITH FORMATTING

后端 未结 3 633
难免孤独
难免孤独 2021-01-16 06:05

Does anyone know if there is a Google apps script out there that does what VMerge does but keeps the formatting of the tables being merged together? (in Google Spreadsheets)

3条回答
  •  攒了一身酷
    2021-01-16 06:50

    If you need a separate script to bring over the formatting...

    function myFunction() {
      var ss = SpreadsheetApp.getActiveSpreadsheet();
      var s = ss.getSheetByName('Sheet1');
      s.getRange('A1').copyFormatToRange(sheet, column, columnEnd, row, rowEnd);
    }
    

提交回复
热议问题