Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default listing all sheets in all workbooks in a directory

Dave Peterson and LenB responded to this post yesterday.

Im sorry I forgot to state that I needed this without actually opening
any workbooks.

Below is what I need:
I need to list all the worksheets in all the workbooks in a specfic
directory.


I need it to look in C:\Test and list the Workbook name and the sheet
name next to it. For example:
Workbook1 - Sheet1
Workbook1 - Sheet2
Workbook1 - Sheet3
Workbook1 - Sheet4
Workbook2 - Sheet1
Workbook2 - Sheet2
Workbook2 - Sheet3


What is the code for this?

  #2   Report Post  
Posted to microsoft.public.excel.programming
GB GB is offline
external usenet poster
 
Posts: 230
Default listing all sheets in all workbooks in a directory

Although I have been lambasted for the ethics that I have used in formatting
responses within this forum (i.e., providing words to solve the problem, and
not specifically writing out the code for the user), a matter of point would
be to try to maintain all responses regarding a single "problem" in one
thread/response group. You may have an answer there already if you haven't
looked, and you may have reposted this particular question there as well. I
have not done the investigation to determine that.

I can not answer the question, as I would think that it would require
"opening" each workbook, even if the user doesn't see this action, to be able
to determine the worksheets in each workbook. As for the code to open all
workbooks in a subdirectory, I think that I have seen help somewhere in this
forum that does such, and then you can pull the list of worksheets within
that workbook and build your data to present in the method you desire.

V/R,
GB

"Todd Huttenstine" wrote:

Dave Peterson and LenB responded to this post yesterday.

Im sorry I forgot to state that I needed this without actually opening
any workbooks.

Below is what I need:
I need to list all the worksheets in all the workbooks in a specfic
directory.


I need it to look in C:\Test and list the Workbook name and the sheet
name next to it. For example:
Workbook1 - Sheet1
Workbook1 - Sheet2
Workbook1 - Sheet3
Workbook1 - Sheet4
Workbook2 - Sheet1
Workbook2 - Sheet2
Workbook2 - Sheet3


What is the code for this?


  #3   Report Post  
Posted to microsoft.public.excel.programming
GS GS is offline
external usenet poster
 
Posts: 364
Default listing all sheets in all workbooks in a directory

Check this site out:

http://www.appspro.com/Tips/Tips_And_Tricks.htm

Look for "Get a List of Sheetnames From a Closed Workbook"

Good luck,
GS
  #4   Report Post  
Posted to microsoft.public.excel.programming
GB GB is offline
external usenet poster
 
Posts: 230
Default listing all sheets in all workbooks in a directory

Learn something every day. Thanks for the info also, I might have a need for
that in the future.

"GS" wrote:

Check this site out:

http://www.appspro.com/Tips/Tips_And_Tricks.htm

Look for "Get a List of Sheetnames From a Closed Workbook"

Good luck,
GS

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
listing all sheets in all workbooks in a directory Todd Huttenstine Excel Programming 2 February 28th 06 01:30 AM
Directory listing Bampah Excel Discussion (Misc queries) 4 January 19th 06 03:25 PM
Directory listing Nigel Chapman Excel Discussion (Misc queries) 2 April 15th 05 02:52 PM
Directory listing manipulation [email protected] Excel Programming 5 December 9th 04 11:01 AM
Recursive directory listing Jim[_47_] Excel Programming 2 September 16th 04 10:55 PM


All times are GMT +1. The time now is 06:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"