MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old May 8th, 2002, 12:07 PM   #1
Laurel Jordan
New Member
 
Join Date: May 2002
Location: Smucker's
Posts: 1
Default

How do I add a table of contents to an Excel Workbook? I have a workbook that contains many worksheets (50+) and I want an easy way to access each tab without having to scroll.

[ This Message was edited by: Laurel Jordan on 2002-05-08 12:45 ]
Laurel Jordan is offline   Reply With Quote
Old May 8th, 2002, 12:10 PM   #2
Brian from Maui
Board Regular
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,743
Default

Laurel,

Try hyperlinking
Brian from Maui is offline   Reply With Quote
Old May 8th, 2002, 12:22 PM   #3
Dave Patton
Board Regular
 
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
Default

I use an index page zIndex.

Sub ListSheets()
' List includes a hyperlink for each sheet
' - sorts the list
' - includes description from H1 of each Sheet
' - includes File Name in Column C
' - currently doesn't allow spaces in sheetnames
' This is OK since I do not put spaces in sheet names since
' such spaces create problems with a variety of formulas.
Dim i As Integer
Dim cRow As Long
Application.ScreenUpdating = False
cRow = 2
For i = 1 To ActiveWorkbook.Sheets.Count
Cells(cRow - 1 + i, 3) = "'" & Application.ActiveWorkbook.Name
Cells(cRow - 1 + i, 4) = "'" & Sheets(i).Name
'Cells(cRow - 1 + i, 2).Value = "=indirect(address(1,8,,,rSheetNames))" ' see next line
Cells(cRow - 1 + i, 2).Value = "=INDIRECT(RC[2]&""!""&CELL(""address"",R1C8))"
ActiveSheet.Hyperlinks.Add Anchor:=Cells(cRow - 1 + i, 4), Address:="", SubAddress:=Sheets(i).Name & "!A1"
Next
Cells(cRow - 1 + i, 4).Select
Selection.Sort Key1:=Range("D2"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Range("B1") = "Description"
Range("C1") = "File Name"
Range("D1") = "Sheet Names"
Rows("1:1").Font.Bold = True
With Range("A1").CurrentRegion
.Columns.AutoFit
.Font.Size = 12
End With
Application.ScreenUpdating = True
End Sub

[ This Message was edited by: Dave Patton on 2002-05-08 11:23 ]
Dave Patton is offline   Reply With Quote
Old May 8th, 2002, 12:23 PM   #4
Nimrod
MrExcel MVP
 
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
Default

Opt1- Create custom views and insert custom view drop down box on menu bar. Then just select desired sheet from drop down

Opt2- Instert "name box" onto tool bar and type in the Sheetname and a cell ie. Sheet50!A1

Opt3- Create a series of links from on reference page ... for details look up "create shortcuts to worksheets" in excel help

Opt4- Create a reference sheet with fifty command buttons with one line macro saying what page to select

Nimrod is offline   Reply With Quote
Old May 8th, 2002, 12:33 PM   #5
CompTutor
New Member
 
Join Date: May 2002
Location: New Jersey
Posts: 23
Default

If you right-click on the tab section of the horizontal scroll bar (left end), it shows a ready-made "TOC"; clicking on the one you want should take you there...
CompTutor is offline   Reply With Quote
Old May 8th, 2002, 12:45 PM   #6
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Quote:
On 2002-05-08 11:33, CompTutor wrote:
If you right-click on the tab section of the horizontal scroll bar (left end), it shows a ready-made "TOC"; clicking on the one you want should take you there...
Hi CompTutor:
This will work only if the SheetTabs option is activated in TOOLS|VIEW|WINDOW_OPTIONS|
In some cases the developer of the workbook may choose to not show the sheets.

Regards!
Yogi Anand is offline   Reply With Quote
Old May 8th, 2002, 04:48 PM   #7
CompTutor
New Member
 
Join Date: May 2002
Location: New Jersey
Posts: 23
Default

Yogi Anand, thanks for that clarification. (I started hanging here because I discovered that I do NOT know how things are used in the "real" world, and I appreciate your response.)
CompTutor is offline   Reply With Quote
Old May 8th, 2002, 04:57 PM   #8
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

Quote:
On 2002-05-08 11:45, Yogi Anand wrote:
Quote:
On 2002-05-08 11:33, CompTutor wrote:
If you right-click on the tab section of the horizontal scroll bar (left end), it shows a ready-made "TOC"; clicking on the one you want should take you there...
Hi CompTutor:
This will work only if the SheetTabs option is activated in TOOLS|VIEW|WINDOW_OPTIONS|
In some cases the developer of the workbook may choose to not show the sheets.

Regards!
Quote:
How do I add a table of contents to an Excel Workbook? I have a workbook that contains many worksheets (50+) and I want an easy way to access each tab without having to scroll.
However, if they didn't have worksheet tabs they wouldn't have the tab scrolling buttons either.
Mark W. is offline   Reply With Quote
Old May 9th, 2002, 05:42 PM   #9
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

Quote:
On 2002-05-08 15:48, CompTutor wrote:
Yogi Anand, thanks for that clarification. (I started hanging here because I discovered that I do NOT know how things are used in the "real" world, and I appreciate your response.)
Hi CompTutor:
Your contribution was a great one -- I just tagged on to it to enhance its value and not to diminish from it. I am glad you took my comment in the positive light.
And, I believe what Mark W is saying -- hey, if the Sheet Tabs are there, let us make use of them as you proposed.

Regards!
__________________
Regards!

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
www.energyefficientbuild.com
Yogi Anand is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 07:35 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes