i have some data that i want to add a time stamp to. Currently I'm doing this by running a loop, and adding the data to colomn 51 with the code below:
var date = Utilities.formatDate(new Date(), "GMT-4", "yyyy-MM-dd HH:mm")
var NewLastRow = ss.getLastRow();
for (var i = 3; i < NewLastRow; i++) {
ss.getRange(i,51).setValue(date);
ss.getRange(i,52).setValue("New_Orders");
}
this works, but seems super slow to run over 5000+ rows. Is there a better way to do this where i don't have to use a for loop and just assign the entire column with the a constant date value?
thanks