Table of Contents based on worksheet names???

Cactusfunk

New Member
Joined
Apr 7, 2002
Messages
1
Hello,

Is it possible to generate a "table of contents" automatically based on the names of the non-hidden worksheets at the bottom of a workbook?

So if I had sheets 1-3 and 5 visible I would get a list on the first sheet like..

Master
DS0
DS1
BDFB

and if I made visible sheet 4 the list work automatically update to say..

Master
DS0
DS1
DS3
BDFB

Also if I had multiple sheets named the same thing it would sum the number of sheets..

Like

Master 1
DS0 12
DS1 8
DS3 10
BDFB 3

And if I change the order of sheets the table of contents would be up dated

Master 1
BDFB 3
DS3 10
DS0 12
DS1 8

The table of contents code would need to work in such a way that it would not use absolute paths as the workbook can be as small as 10 worksheets or over 100.

Thanks for reading

Jason

Oh and if this is beyond the scope of excel, please hit me over the head with a little reality
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,214,548
Messages
6,120,141
Members
448,948
Latest member
spamiki

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top