ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   insert into a cell the last update (https://www.excelbanter.com/excel-worksheet-functions/8430-insert-into-cell-last-update.html)

Ramiro Cubillan

insert into a cell the last update
 
how can i insert into a cell the last update of the document that I can see
in the statistic or MSDOS in the General Tap.

Regards,

Ramiro



Frank Kabel

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 for example in a cell (to get the last modification date)
=DOCPROPS("last save time")
(format cell as date)

--
Regards
Frank Kabel
Frankfurt, Germany
"Ramiro Cubillan" schrieb im Newsbeitrag
...
how can i insert into a cell the last update of the document that I can
see in the statistic or MSDOS in the General Tap.

Regards,

Ramiro





All times are GMT +1. The time now is 04:03 PM.

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