Automatically stamp username who made changes to Google Sheet
问题 I have a Google Sheet that I would like to automatically stamp the username of the person who last made a change to a specific row. I currently have this code to work as I like to do the same function with the time: function onEdit() { var s = SpreadsheetApp.getActiveSheet(); var r = s.getActiveCell(); if( r.getColumn() != 2 ) { //checks the column var row = r.getRow(); var time = new Date(); time = Utilities.formatDate(time, "GMT-07:00", "yyyy-MM-dd, hh:mm:ss"); SpreadsheetApp.getActiveSheet