ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Time Date Last Modified (https://www.excelbanter.com/excel-discussion-misc-queries/24652-time-date-last-modified.html)

LDL

Time Date Last Modified
 
I am sharing a worksheet with another person and we both are updating it
often throughout the day. I'd like to have a cell display the last time and
date it was modified. Can this be done? Thanks, Diane



Peo Sjoblom

Only by using VBA


http://tinyurl.com/apq8b

Regards,

Peo Sjoblom

"LDL" wrote:

I am sharing a worksheet with another person and we both are updating it
often throughout the day. I'd like to have a cell display the last time and
date it was modified. Can this be done? Thanks, Diane




Bob Phillips

Here is an 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

Now you can use the following formula in one of your cells:
=DocProps("Last save time")

Obviously, the file has to have been saved.

--

HTH

Bob Phillips

"LDL" wrote in message
...
I am sharing a worksheet with another person and we both are updating it
often throughout the day. I'd like to have a cell display the last time

and
date it was modified. Can this be done? Thanks, Diane





LDL

Peo and Bob, Thank you both for your responses. Diane

"Bob Phillips" wrote in message
...
Here is an 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

Now you can use the following formula in one of your cells:
=DocProps("Last save time")

Obviously, the file has to have been saved.

--

HTH

Bob Phillips

"LDL" wrote in message
...
I am sharing a worksheet with another person and we both are updating it
often throughout the day. I'd like to have a cell display the last time

and
date it was modified. Can this be done? Thanks, Diane








All times are GMT +1. The time now is 05:26 AM.

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