function onEdit(e){
// Set a comment on the edited cell to indicate when it was changed.
var range = e.range;
range.setNote('Last modified: ' + new Date())
}
This works, but I would like to add another line in the note. I would like to add the last value of the cell that was modified. example, if I change the cell value from .01 to .02. I would like the note to have the new date it was changed AND also the .01 to display in the note. So we have reference of what the value was before it was changed. I tried add this as another line....
range.setNote('Last Recorded Entry: '+ getValue())
but I must have something wrong. or need to combine it with the previous line?