Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mike on the learning curve!
 
Posts: n/a
Default How do I show some of the file properties in a cell in a work she.

I just need to display the "author" from the file properties in a cell in the
worksheet of the same file!

Is this a function?
Thanks
  #2   Report Post  
Gord Dibben
 
Posts: n/a
Default

Mike

User Defined Function, not built-in.

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 a cell enter...........

=DOCPROPS("author")
or
=DOCPROPS("last save time")

Gord Dibben Excel MVP


On Thu, 30 Dec 2004 14:37:01 -0800, Mike on the learning curve! <Mike on the
learning wrote:

I just need to display the "author" from the file properties in a cell in the
worksheet of the same file!

Is this a function?
Thanks


  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

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 use in the worksheet with

=DOCPROPS("Author")


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Mike on the learning curve!" <Mike on the learning
wrote in message
...
I just need to display the "author" from the file properties in a cell in

the
worksheet of the same file!

Is this a function?
Thanks



Reply
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
show macro security setting in a cell Mark Excel Worksheet Functions 3 March 21st 05 08:53 AM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 01:37 AM
Using Jet to read excel file returns blank for last cell - sometim Ron Excel Discussion (Misc queries) 1 December 9th 04 09:21 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 08:16 PM
cell reference show cell name (ie. D45) and not cell value ria Excel Worksheet Functions 4 November 6th 04 05:38 AM


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

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"