Im trying to copy and paste multiple cell values to another cell on my sheet. Basically, if I edit cell "AM13", it should copy it's old value to "C23". This part is working, but the other cell, which is "N12" is not copy and pasting on cell "C25".
Here's my code right now:
function onEdit(e) {
if (e.range.getA1Notation() === 'AM13') {
var wspaste = e.source.getRange('Sheet1!C24');
var wspaste2 = e.source.getA1Notation().getRange('Sheet1!N12');
var wspaste3 = e.source.getActiveSheet().getRange('Sheet1!N12').getValue();
var OLDVALUE;
OLDVALUE = e.oldValue;
wspaste.setValue(OLDVALUE);
wspaste2.setValue(wspaste3);
}
}
Here's a copy of my sheet!
Thanks for the help!
