Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I generate a list of the tabs/worksheets from a workbook?

I have a workbook with numerous tabs/worksheets...I have created a summary
sheet that links to each worksheet.
First of all I would like to produce a list of all the tabs in the workbook
to verify that i have included every sheet. I know this is a bit archaic but
I want to start here.
Secondly, I would like to know how to create a new sheet that will
automatically detect each tab, list the tab names in a single row across, and
pull specific data from each tab.

I am not proficient with excel macros or visual basic...but i can folow
simple instructions easily.

here is a simple example of what I would like to do:

Sheet 'A'
Price 150
Estimate 200
Recommendation Buy

Sheet 'B'
Price 250
Estimate 200
Recommendation Sell

Sheet 'Summary'
A B
Price 150 250
Estimate 200 200
Recommendation Buy Sell

I want the summary sheet to automatically update if I add a new sheet, say 'C'
The data it will be looking for will be in the same cells of each sheet.

I know i can do this by just inserting columns and copying the links
formulas from the adjacent cells...however, the workbook is constantly
updated, and new sheets added and deleted frequently...I would rather if
there was someway to update the summary sheet automatically.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default How do I generate a list of the tabs/worksheets from a workbook?

Here is part of your answer. Enter the following macro, then select some
cell and run the macro. It will produce the list of worksheets at the point
you selected:

Sub sheet_lister()
i = 0
For Each w In Worksheets
Selection.Offset(i, 0).Value = w.Name
i = i + 1
Next
End Sub


--
Gary''s Student
gsnu200702


"tjennings" wrote:

I have a workbook with numerous tabs/worksheets...I have created a summary
sheet that links to each worksheet.
First of all I would like to produce a list of all the tabs in the workbook
to verify that i have included every sheet. I know this is a bit archaic but
I want to start here.
Secondly, I would like to know how to create a new sheet that will
automatically detect each tab, list the tab names in a single row across, and
pull specific data from each tab.

I am not proficient with excel macros or visual basic...but i can folow
simple instructions easily.

here is a simple example of what I would like to do:

Sheet 'A'
Price 150
Estimate 200
Recommendation Buy

Sheet 'B'
Price 250
Estimate 200
Recommendation Sell

Sheet 'Summary'
A B
Price 150 250
Estimate 200 200
Recommendation Buy Sell

I want the summary sheet to automatically update if I add a new sheet, say 'C'
The data it will be looking for will be in the same cells of each sheet.

I know i can do this by just inserting columns and copying the links
formulas from the adjacent cells...however, the workbook is constantly
updated, and new sheets added and deleted frequently...I would rather if
there was someway to update the summary sheet automatically.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default How do I generate a list of the tabs/worksheets from a workbook?

You can write code to copy that data for new sheets, but there is no delete
sheet event so you cannot trap that.

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"tjennings" wrote in message
...
I have a workbook with numerous tabs/worksheets...I have created a summary
sheet that links to each worksheet.
First of all I would like to produce a list of all the tabs in the
workbook
to verify that i have included every sheet. I know this is a bit archaic
but
I want to start here.
Secondly, I would like to know how to create a new sheet that will
automatically detect each tab, list the tab names in a single row across,
and
pull specific data from each tab.

I am not proficient with excel macros or visual basic...but i can folow
simple instructions easily.

here is a simple example of what I would like to do:

Sheet 'A'
Price 150
Estimate 200
Recommendation Buy

Sheet 'B'
Price 250
Estimate 200
Recommendation Sell

Sheet 'Summary'
A B
Price 150 250
Estimate 200 200
Recommendation Buy Sell

I want the summary sheet to automatically update if I add a new sheet, say
'C'
The data it will be looking for will be in the same cells of each sheet.

I know i can do this by just inserting columns and copying the links
formulas from the adjacent cells...however, the workbook is constantly
updated, and new sheets added and deleted frequently...I would rather if
there was someway to update the summary sheet automatically.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default How do I generate a list of the tabs/worksheets from a workbook?

Brilliant! Just what I was looking for! And I didn't even have to ask the questions. Thanks.

Philip

Gary''s Student wrote:
Here is part of your answer. Enter the following macro, then select some
cell and run the macro. It will produce the list of worksheets at the point
you selected:

Sub sheet_lister()
i = 0
For Each w In Worksheets
Selection.Offset(i, 0).Value = w.Name
i = i + 1
Next
End Sub


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default How do I generate a list of the tabs/worksheets from a workboo

Glad I could be of help.
--
Gary''s Student
gsnu200709


"Philip" wrote:

Brilliant! Just what I was looking for! And I didn't even have to ask the questions. Thanks.

Philip

Gary''s Student wrote:
Here is part of your answer. Enter the following macro, then select some
cell and run the macro. It will produce the list of worksheets at the point
you selected:

Sub sheet_lister()
i = 0
For Each w In Worksheets
Selection.Offset(i, 0).Value = w.Name
i = i + 1
Next
End Sub





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default How do I generate a list of the tabs/worksheets from a workboo

This sounds very similar to what I need to do... but how did you create the
links to each sheet?

"Gary''s Student" wrote:

Glad I could be of help.
--
Gary''s Student
gsnu200709


"Philip" wrote:

Brilliant! Just what I was looking for! And I didn't even have to ask the questions. Thanks.

Philip

Gary''s Student wrote:
Here is part of your answer. Enter the following macro, then select some
cell and run the macro. It will produce the list of worksheets at the point
you selected:

Sub sheet_lister()
i = 0
For Each w In Worksheets
Selection.Offset(i, 0).Value = w.Name
i = i + 1
Next
End Sub



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default How do I generate a list of the tabs/worksheets from a workboo

No links are created.......just a list of the sheets is returned.

Perhaps you should start a new thread with a better description of what you need
doing?


Gord Dibben MS Excel MVP

On Wed, 23 May 2007 06:06:01 -0700, graloe
wrote:

This sounds very similar to what I need to do... but how did you create the
links to each sheet?

"Gary''s Student" wrote:

Glad I could be of help.
--
Gary''s Student
gsnu200709


"Philip" wrote:

Brilliant! Just what I was looking for! And I didn't even have to ask the questions. Thanks.

Philip

Gary''s Student wrote:
Here is part of your answer. Enter the following macro, then select some
cell and run the macro. It will produce the list of worksheets at the point
you selected:

Sub sheet_lister()
i = 0
For Each w In Worksheets
Selection.Offset(i, 0).Value = w.Name
i = i + 1
Next
End Sub




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default How do I generate a list of the tabs/worksheets from a workboo

Yes... thank you so much for responding!

"Gord Dibben" wrote:

No links are created.......just a list of the sheets is returned.

Perhaps you should start a new thread with a better description of what you need
doing?


Gord Dibben MS Excel MVP

On Wed, 23 May 2007 06:06:01 -0700, graloe
wrote:

This sounds very similar to what I need to do... but how did you create the
links to each sheet?

"Gary''s Student" wrote:

Glad I could be of help.
--
Gary''s Student
gsnu200709


"Philip" wrote:

Brilliant! Just what I was looking for! And I didn't even have to ask the questions. Thanks.

Philip

Gary''s Student wrote:
Here is part of your answer. Enter the following macro, then select some
cell and run the macro. It will produce the list of worksheets at the point
you selected:

Sub sheet_lister()
i = 0
For Each w In Worksheets
Selection.Offset(i, 0).Value = w.Name
i = i + 1
Next
End Sub





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
One workbook to another . . . Wayne Knazek Excel Discussion (Misc queries) 2 September 26th 06 08:49 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
create drop down list from different workbook Brett Excel Discussion (Misc queries) 2 August 18th 06 12:04 AM
auto updating list Larry Excel Worksheet Functions 8 July 27th 06 01:59 PM
Combo box list w/ data in 2nd workbook without opening both files MHCPO Excel Worksheet Functions 0 December 15th 05 07:15 PM


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