Function to enter users name and date when last modified?

N

Neale Dickson

Hi,

Hoping someone can provide an answer to the following Excel
(2002) query.

Is there a way I can automatically display the last
person/user who saved a spreadsheet plus the date in the
spreadsheet? OR have a macro that prompts people to enter
these details when they go to save?

Looking forward to your response,

Thank you
Neale
 
F

Frank Kabel

Hi
one way: you may use the following user defined function:
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


In your case with the following formulas in some cells
=DocProps("Author")
=DocProps("last saved time")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top