Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Getting Data from Closed Workbooks | Excel Worksheet Functions | |||
Information from Closed workbooks | Excel Discussion (Misc queries) | |||
Referencing Closed workbooks...Help! | Excel Programming | |||
Get two Values from closed Workbooks | Excel Programming | |||
Get the properties from a closed file | Excel Programming |