ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How can I access/display File -> properties in a cell (https://www.excelbanter.com/excel-discussion-misc-queries/16090-how-can-i-access-display-file-%3E-properties-cell.html)

Denny

How can I access/display File -> properties in a cell
 
How can I access and display, from within a worksheet cell, the modified date
in FIle-Properties? In Word you can insert the "Field" in the document. How
can this be done in Excel?

Thanks,
Denny

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)


"Denny" wrote in message
...
How can I access and display, from within a worksheet cell, the modified

date
in FIle-Properties? In Word you can insert the "Field" in the document.

How
can this be done in Excel?

Thanks,
Denny





All times are GMT +1. The time now is 09:34 PM.

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