Hello,
I am trying to have a cell (or cells) that log when the last change was made to a shared workbook.
I have tried a few options through VBA that I found through searching:
or
Each work, but only each time I run the function. I want this to run automagically whenever there is a change (so that my boss can see how current the workbook data are).
I also tried to force the function to update:
This didn't work at all.
Please help.
I am trying to have a cell (or cells) that log when the last change was made to a shared workbook.
I have tried a few options through VBA that I found through searching:
Public Function ModDate()
ModDate = Format(FileDateTime(ActiveWorkbook.FullName), "m/d/yy hh:nn ampm")
End Function
or
Sub Last_Save()
Range("E2").Value = Format(ActiveWorkbook.BuiltinDocumentProperties("Last Save Time"), "m/d/yy hh:nn ampm")
End Sub
orFunction LastModified() As Date
LastModified = ActiveWorkbook.BuiltinDocumentProperties("Last Save Time")
End Function
Each work, but only each time I run the function. I want this to run automagically whenever there is a change (so that my boss can see how current the workbook data are).
I also tried to force the function to update:
Sub UpdateCell(D2)
ActiveWorkbook.RefreshAll
Application.OnTime Now + TimeValue("00:00:5"), "List1.UpdateCell"
End Sub
This didn't work at all.
Please help.