谷歌脚本不让我做getRange(整数,整数,整数,整数)方法

时间:2018-06-07 00:30:53

标签: java

function myFunction() 

{

    var sheet = SpreadsheetApp.getActiveSheet();

    var inrange = sheet.getRange('c2:c5');

    var sheet2 = SpreadsheetApp.openByUrl('https://docs.google.com/spreadsheets/d/14US1T6qA4gi8DZxw/edit#gid=0');

    var copy = sheet.getRange("C2:C5").copyTo(sheet2.getRange(sheet2.getLastRow()+1,1,1,4));

    sheet.getRange("C2:C5").clearContent();
}

0 个答案:

没有答案