setValue()
SpreadsheetApp.getActive().getRange("A1").setValue('abc');
setValue()
SpreadsheetApp.getActive().getRange("A1").setValue('abc');
setValues()
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
// The size of the two-dimensional array must match the size of the range.
var values = [
[ "2.000", "1,000,000", "$2.99" ]
];
var range = sheet.getRange("A1:C1");
range.setValues(values);
setValues
let SHEET = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
let values = SHEET.getRange(2, 1, SHEET.getLastRow()-1, 1).getValues();
// .getRange(row, column, numRows, numColumns)
// So '.getLastRow()-1' because 'values' starts at the second row
let valuesDestination = SHEET.getRange(`B2:B${SHEET.getLastRow()}`)
valuesDestination.setValues(values);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us