Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Exposed Workseet names

I'm making a form that extracts values from cells in other workbooks. Using
the form, the user will select the workbook, the worksheet, and then the
cells. My question is how can I obtain the worksheet names in an unopened
workbook so I can list them in a combobox on the form?
I know how to do this in an opened workbook, but I don't want to open the
workbook just to get to the worksheet names. I'm anticipating a user that
selects a workbook, but then decides it doesn't contain the worksheet he
wants, so he goes on to select another workbook. If I open the workbooks
just to access the worksheet names I might end up with a lot of workbook
cluter....
Thank you for looking at my posting.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Exposed Workseet names

The short answer is you can't. There are a number of different techniques for
reading data from a closed workbook but they all rely on knowing the struture
of the workbook ahead of time.
--
HTH...

Jim Thomlinson


"GoldenWrench" wrote:

I'm making a form that extracts values from cells in other workbooks. Using
the form, the user will select the workbook, the worksheet, and then the
cells. My question is how can I obtain the worksheet names in an unopened
workbook so I can list them in a combobox on the form?
I know how to do this in an opened workbook, but I don't want to open the
workbook just to get to the worksheet names. I'm anticipating a user that
selects a workbook, but then decides it doesn't contain the worksheet he
wants, so he goes on to select another workbook. If I open the workbooks
just to access the worksheet names I might end up with a lot of workbook
cluter....
Thank you for looking at my posting.

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
C# Form exposed to Excel does not like CalculateAll (F9) pinkfloydfan Excel Programming 0 July 29th 08 03:45 PM
Base class members are not exposed in Excel using Web Service YoJ Excel Programming 0 January 29th 07 04:05 PM
Painting my kitchen exposed parts (including ceiling) David Smithz Excel Discussion (Misc queries) 2 March 4th 06 12:31 AM
Workseet linking map ixlr84fun Excel Discussion (Misc queries) 1 January 5th 06 01:09 AM
Put a Worksheet in a workseet? Jayna Excel Worksheet Functions 1 April 7th 05 03:02 PM


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