LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 12
Default Document Properties - Last Saved, Author

I tried adding the following function (from another post), in order to automate documenting the last date changed/saved and the author:

'-----------------------------------------------------
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 such as
=DocProps ("last author")
or
=DocProps ("last save time")
'-________________________________________________

I entered =DocProps("last author") in a cell, but get a "name" error.

Have I placed the Function in the wrong area? Add in problems?

Help appreciated.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to open an excel document saved in a temporay file Troubled Ann Excel Discussion (Misc queries) 5 July 20th 06 05:23 PM
Document Properties sent to print when print with office applicati Office applications Excel Discussion (Misc queries) 1 March 31st 06 07:45 PM
need document properties statistics revision information fleadinga New Users to Excel 0 March 13th 06 10:16 PM
How do I recover Excel document printed but not saved Richard AH Excel Discussion (Misc queries) 1 July 12th 05 07:34 PM
Document not saved on macintosh Etienne Excel Discussion (Misc queries) 1 June 1st 05 06:30 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"