84669 人學習
152542 人學習
20005 人學習
5487 人學習
7821 人學習
359900 人學習
3350 人學習
180660 人學習
48569 人學習
18603 人學習
40936 人學習
1549 人學習
1183 人學習
32909 人學習
將資料從一個電子表格複製到另一個電子表格
function copydata() { const ss = SpreadsheetApp.getActive(); const ss1 = SpreadsheetApp.openById(gobj.globals.test1id);//替换为id const sh1 = ss1.getSheetByName("Sheet1"); const vs1 = sh1.getDataRange().getValues() const ss2 = SpreadsheetApp.openById(gobj.globals.test2id);//替换为id const sh2 = ss2.getSheetByName("Sheet1"); sh2.clearContents(); sh2.getRange(1,1,vs1.length,vs1[0].length).setValues(vs1); }
將資料從一個電子表格複製到另一個電子表格