Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
MDW MDW is offline
external usenet poster
 
Posts: 117
Default Get Properties Of Closed Workbooks

Is there a way to get access to certain characteristics of an Excel workbook
file without having to open it? In particular, I'd like to read the value in
the DefaultDocumentProperties("Category") - I have no need or interest to
make any changes to the file, and so I don't need to open it.

Thanks.
--
Hmm...they have the Internet on COMPUTERS now!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Get Properties Of Closed Workbooks

The easiest way is to use the DSO Property reader. Download from
http://support.microsoft.com/Default.aspx?id=224351

Then, in VBA go to the Tools menu, choose References, and check
the box for "DSO OLE Document Properties Reader 2.0". Once you
have this reference, you can use code like

Dim DocProps As DSOFile.OleDocumentProperties
Set DocProps = New DSOFile.OleDocumentProperties
DocProps.Open "H:\Book1.xls"
Debug.Print DocProps.SummaryProperties.Category
DocProps.Close



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"MDW" wrote in message
...
Is there a way to get access to certain characteristics of an
Excel workbook
file without having to open it? In particular, I'd like to read
the value in
the DefaultDocumentProperties("Category") - I have no need or
interest to
make any changes to the file, and so I don't need to open it.

Thanks.
--
Hmm...they have the Internet on COMPUTERS now!



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
Getting Data from Closed Workbooks NPell Excel Worksheet Functions 3 April 2nd 08 10:28 AM
Information from Closed workbooks PaulW Excel Discussion (Misc queries) 1 August 24th 06 09:20 PM
Referencing Closed workbooks...Help! chris100[_52_] Excel Programming 2 January 25th 06 04:47 PM
Get two Values from closed Workbooks Roger Larsson Excel Programming 2 January 17th 06 09:37 AM
Get the properties from a closed file ericsson Excel Programming 2 December 9th 04 12:10 PM


All times are GMT +1. The time now is 03:23 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"