Using Google Apps Script, is there a way to write the values in a Google Spreadsheet array to a range without looping?
I am thinking something like the following to put one name each into cells A1:A3
function demoWriteFromArray() {
var employees=["Adam","Barb","Chris"];
ssActive = SpreadsheetApp.getActiveSheet();
rgMyRange = ssActive.getRange("A1:A3");
rgMyRange.setValue(employees)
}
Problem with above is that after execution, A1:A3 all contain ={"Adam","Barb","Chris"} and display "Adam".