我试图从5列中的2个单元格中获取值,并将值粘贴到下一个空单元格中,然后将其粘贴到另一个包含2列的数组中。就像A3:G3一样,我想拿A3和E3并将值粘贴到列I:J中的下一个空行中。我是编程的新手,我被卡住了。请注明以下内容:
function copytestdata() {
var ss = SpreadsheetApp.openById("cJ2S9EmK63KKKBPjE");
var sh=ss.getSheetByName("2201.T");
var destination = sh.getRange('I3:J400')
//var st = ss.getSheetByName("2201.T").getRange("L3:M350");
//var ss = SpreadsheetApp.getActiveSpreadsheet();
//var Range1 = ss.getSheetByName("original").getRange('A3:E3');
//var Range2 = ss.getSheetByName("copy");
for (var i = 0, i<destination, i++)
if (destination = "")
sh.getRange("A1:G1").copyTo(destination), {contentsOnly:true})
}