Hi, I'm trying to create a cell that will display the last saved date of the worksheet automatically.
I did a google search and found this code:
Function LastSaved() As Date
Application.Volatile
LastSaved = ThisWorkbook.BuiltinDocumentProperties("Last Save Time")
End Function
But the problem now is when I formatted the cell to display date, the date is incorrect. It show year 2017 and date is next day. So its like showing the future. Anyone know how can I correct this problem so show tat it is today date?
Thanks
I did a google search and found this code:
Function LastSaved() As Date
Application.Volatile
LastSaved = ThisWorkbook.BuiltinDocumentProperties("Last Save Time")
End Function
But the problem now is when I formatted the cell to display date, the date is incorrect. It show year 2017 and date is next day. So its like showing the future. Anyone know how can I correct this problem so show tat it is today date?
Thanks
