ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I report the filedate in an Excel2000 cell? (https://www.excelbanter.com/excel-worksheet-functions/15922-how-do-i-report-filedate-excel2000-cell.html)

IaSwede

How do I report the filedate in an Excel2000 cell?
 
I want a cell to report the file's creation/last save date, as you can with
&[Date] in the header.
that way it will only update the date when I save the file (before i print
the updated file)

Bob Phillips

You need a udf

Function DocProps(prop As String)
Aplication.Volatile
On Error GoTo err_value
DocProps = ActiveWorkbook.BuiltinDocumentProperties (prop)
Exit Function
err_value:
DocProps = CVErr(xlErrValue)
End Function


You would use like so

=DOCPROPS("last save time")

--

HTH

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


"IaSwede" wrote in message
...
I want a cell to report the file's creation/last save date, as you can

with
&[Date] in the header.
that way it will only update the date when I save the file (before i print
the updated file)





All times are GMT +1. The time now is 04:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com