Finding name of last user who modified Excel Spreadsheet

  • Thread starter Thread starter ibeetb
  • Start date Start date
I

ibeetb

IS there code to find the name or userid of the last user who modified a
particular excel spreadsheet?
 
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 in a cell
=DOCPROPS("last author")
or
=DOCPROPS("last save time")
 
You could try using

ActiveWorkbook.BuiltinDocumentProperties("Last _
Author").value

to find this, although this may depend upon the individuals updating the
User name in Excel Options.

HTH
Simon Livings
 
Back
Top