ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   returning comments propery of a closed file (https://www.excelbanter.com/excel-programming/435260-returning-comments-propery-closed-file.html)

Robert Flanagan

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

Bob



Chip Pearson

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


Robert Flanagan

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





All times are GMT +1. The time now is 10:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com