Display Last Saved Date on worksheet

后端 未结 5 1154
你的背包
你的背包 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:30

    This might be an alternative solution. Paste the following code into the new module:

    Public Function ModDate()
    ModDate = 
    Format(FileDateTime(ThisWorkbook.FullName), "m/d/yy h:n ampm") 
    End Function
    

    Before saving your module, make sure to save your Excel file as Excel Macro-Enabled Workbook.

    Paste the following code into the cell where you want to display the last modification time:

    =ModDate()
    

    I'd also like to recommend an alternative to Excel allowing you to add creation and last modification time easily. Feel free to check on RowShare and this article I wrote: https://www.rowshare.com/blog/en/2018/01/10/Displaying-Last-Modification-Time-in-Excel

提交回复
热议问题