title: Outputting Last Saved Date/Time to a Particular Cell in Google Sheets
body: <p>I am trying to output to a particular cell (M38 for example) the date and time that a Google Sheet was last saved. I have this script, which automatically updates every time the spreadsheet is saved, but it does so on the last line. I can't figure out how to get it to appear in a particular cell.</p>
  
  <pre><code>function onEdit() {
    var thisSheet = SpreadsheetApp.getActiveSheet();
    var theLastRow = thisSheet.getLastRow();
    var newRowRange = thisSheet.getRange(theLastRow+1,1);
    var theDateTime = new Date();
    newRowRange.setValue(theDateTime.toLocaleString());
  };
  </code></pre>
  
  <p>Any ideas?</p>