Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default returning comments propery of a closed file

Is there a way to return the comments property of a closed workbook?
(Without opening it)

Bob


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default returning comments propery of a closed file

See http://www.cpearson.com/excel/DocProp.aspx for code details and a
required DLL available from Microsoft. Once you have downloaded and
installed the DLL from MS, download
http://www.cpearson.com/Zips/modDocumentProperties.zip from my DocProp
page. Using that code, you can then do something like


Sub AAA()
Dim CommentString As String
CommentString = ReadPropertyFromClosedFile("C:\Book1.xls", _
"Comments", PropertyLocationBuiltIn)
Debug.Print CommentString
End Sub

See the DocProp page for full documentation and examples.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)



On Wed, 21 Oct 2009 15:46:45 -0400, "Robert Flanagan"
wrote:

Is there a way to return the comments property of a closed workbook?
(Without opening it)

Bob

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default returning comments propery of a closed file

Many thanks. Now to find the time to write the code....

Bob

"Chip Pearson" wrote in message
...
See http://www.cpearson.com/excel/DocProp.aspx for code details and a
required DLL available from Microsoft. Once you have downloaded and
installed the DLL from MS, download
http://www.cpearson.com/Zips/modDocumentProperties.zip from my DocProp
page. Using that code, you can then do something like


Sub AAA()
Dim CommentString As String
CommentString = ReadPropertyFromClosedFile("C:\Book1.xls", _
"Comments", PropertyLocationBuiltIn)
Debug.Print CommentString
End Sub

See the DocProp page for full documentation and examples.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)



On Wed, 21 Oct 2009 15:46:45 -0400, "Robert Flanagan"
wrote:

Is there a way to return the comments property of a closed workbook?
(Without opening it)

Bob



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
reading Comments in a closed file kurthh Excel Programming 1 October 10th 08 01:50 PM
Fetching Comments from a closed work book [email protected] Excel Discussion (Misc queries) 1 March 13th 08 03:05 PM
Returning the number of comments in a workbook Sue Excel Programming 5 April 18th 07 07:16 PM
Returning cellvalue from closed workbook using a function JanB[_2_] Excel Programming 7 September 27th 06 03:32 AM
Print Area propery Marc Excel Programming 1 January 14th 04 03:49 AM


All times are GMT +1. The time now is 07:47 PM.

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

About Us

"It's about Microsoft Excel"