Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Find list of sheets of an unopened XLS file

I am trying to compile lots of data from hundreds of XLS files. The
sheet names containing the data are not the same; however, there are
some distingishing features that I can check. I have been using
formulas to refer to cells in a sheet so I don't have to open every XLS
file to get the data.

Is there any way I can get the names of the worksheets of the unopened
file so I can use the sheet names in a formula and then test that
value?

Thanks for the help.

Rock

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Find list of sheets of an unopened XLS file

See this previous discussion. Particularly the function by KeepItCool:

http://tinyurl.com/8ybkh

--
Regards,
Tom Ogilvy

"Rock" wrote in message
oups.com...
I am trying to compile lots of data from hundreds of XLS files. The
sheet names containing the data are not the same; however, there are
some distingishing features that I can check. I have been using
formulas to refer to cells in a sheet so I don't have to open every XLS
file to get the data.

Is there any way I can get the names of the worksheets of the unopened
file so I can use the sheet names in a formula and then test that
value?

Thanks for the help.

Rock



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Find list of sheets of an unopened XLS file

Tom,

Thanks for the link... however it seems that this code doesn't work for
my excel files (or I am not smart enough to get it to work). If I use
a new workbook it works just fine. I have added a chart to this
workbook and it works fine. I have copied all the sheets from my
workbook to a new workbook and it works fine. I copied all the sheets
and all the VBA modules and code and it works fine. If I try to use
the existing workbooks, then it doesn't work. The existing books
contain macros, images, and charts.

bTyp = aByt(9) 'types: 0WKS/1MACRO/2CHART

This value is 255 on the first loop, for some reason when opening the
existing XLS files. Does anyone know what this means or the cause?

Any suggestions on getting it to work with my existing sheets?

Thanks,

Rock

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
copying data from an unopened file programmatically maxzsim Excel Discussion (Misc queries) 2 December 1st 05 02:29 AM
Getting value from an unopened file (indirectly referenced) learnexcel Excel Programming 11 July 27th 05 01:36 AM
Push/write data into an unopened file Rod Excel Worksheet Functions 2 March 27th 05 03:29 PM
Extracting footer informatiojn from unopened XLS file. microfich Excel Programming 1 February 2nd 05 05:27 AM
Extracting Footer information from unopened XLS file. microfich Excel Programming 0 February 1st 05 04:15 PM


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