how do I show last date file saved?

P

Pete

I want a cell to show the last saved file date and not change every time I
open the file except when it is saved.
 
B

Bob Phillips

Try a UDF like


Function DocProps(prop As String)


Application.Volatile

On Error GoTo err_value
DocProps = ActiveWorkbook.BuiltinDocumentProperties(prop)
Exit Function

err_value:
DocProps = CVErr(xlErrValue)
End Function


and can be used like so


=DocProps("Last save time")



--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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

Top