When last saved?

  • Thread starter Thread starter ph8
  • Start date Start date
P

ph8

Is there a way to pull a timestamp from an excel spreadsheet for whe
that spreadsheet was last saved?

If not? Is there a way to have excel update a timestamp cell PRIOR t
every time the spreadsheet gets saved?

Or even a VBA macro which runs prior to a save?

Basicaly I need a way to reliably pull the time stamp from when
spreadsheet was last saved.

Any thoughts
 
Perfect. Thanks Jim!

Now one more question, is there a way for an excel formula to return
the same result?
 
You could make a function out of Jim Thomlinson's code and call the
function in a cell.
Function strSaveDate() As String
If Len(ThisWorkbook.Path) <> 0 Then
strSaveDate = ThisWorkbook.BuiltinDocumentProperties("Last save
time")
Else
strSaveDate = "Not saved"
End If
End Function
A1 = "=strSaveDate()"

The path test is used to determine the file exists--I'm sure there's a
better way.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top