I want an UDF that gives me the date of file's last update.
I tried use it:
But, everytime the Excel is opened, the date that is set is the current date, even the file has not been saved.
Luthius
I tried use it:
Code:
Public Function LastUpdate() As Date
Application.Volatile
strPath = Application.ThisWorkbook.FullName
LastUpdate = Format(FileDateTime(strPath), "dd/mm/yyyy h:mm:ss")
End Function
But, everytime the Excel is opened, the date that is set is the current date, even the file has not been saved.
Luthius