Display Last Saved Date on worksheet

后端 未结 5 1180
你的背包
你的背包 2021-01-07 19:06

Does anyone know how to display the Last Saved Date of an Excel Spreadsheet on one of the worksheets?

I have found ways to do it using macros, but the spreadsheet is

5条回答
  •  [愿得一人]
    2021-01-07 19:27

    thought I would update on this.

    Found out that adding to the VB Module behind the spreadsheet does not actually register as a Macro.

    So here is the solution:

    1. Press ALT + F11
    2. Click Insert > Module
    3. Paste the following into the window:

    Code

    Function LastSavedTimeStamp() As Date
      LastSavedTimeStamp = ActiveWorkbook.BuiltinDocumentProperties("Last Save Time")
    End Function
    
    1. Save the module, close the editor and return to the worksheet.
    2. Click in the Cell where the date is to be displayed and enter the following formula:

    Code

    =LastSavedTimeStamp()
    

提交回复
热议问题