Modified Date in Worksheet

  • Thread starter Thread starter Russell Hill
  • Start date Start date
R

Russell Hill

I would like to have a cell in a worksheet that refers to
the Modified Date that can be seen under the
File/Properties dialog box under the General tab. Does
anyone know if there is a way to reference this date?
Thanks in advance.
 
Hi
use the following UDF:

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 enter in a cell
=DOCPROPS("last save time")
(format as date)
 
Back
Top