ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   show date modified in a cell (https://www.excelbanter.com/excel-programming/328233-show-date-modified-cell.html)

Lana

show date modified in a cell
 
How can I get the modification date of a file to display in a worksheet cell?

Jim Thomlinson[_3_]

show date modified in a cell
 
There is nothing built inot Excel to do this. Place this code in a VB module
(let me know if you need help with this) in the spreadsheet you need the last
saved date in.

Public Function LastSaved()
LastSaved = ThisWorkbook.BuiltinDocumentProperties("Last Save Time")

End Function

In any cell you can now use the formula

=LastSaved()

and the last saved date and time will be displayed (make sure to format the
cell as date).

HTH

"Lana" wrote:

How can I get the modification date of a file to display in a worksheet cell?


Lana

show date modified in a cell
 
This worked perfectly, thank you very much!!!


All times are GMT +1. The time now is 12:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com