I am currently collaborating on a file with multiple individuals and I would like to create a script that can identify the person who last modified a specific cell, along with the timestamp of when the modification occurred. All I need is the email address of the user who made the most recent change and the corresponding time stamp example here,
So far, I have managed to retrieve the email address of the user but I am unable to capture the timestamp.
function history_version() {
var thisSS = SpreadsheetApp.getActiveSpreadsheet();
var sheet1 = thisSS.getSheetByName('Data');
var specialCell = sheet1.getRange("A1:A5");
Logger.log(htmlEmail = "Cell " + specialCell.getA1Notation() + " edited by " + Session.getActiveUser().getEmail())
}
Thank you for your assistance!