View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default how to make a list of all the tab in an excel file

You could use a macro.

Private Sub ListSheets()
'list of sheet names starting at A1
Dim rng As Range
Dim I As Integer
Worksheets.Add(After:=Worksheets(Worksheets.Count) ).Name = "List"
Set rng = Range("A1")
For Each Sheet In ActiveWorkbook.Sheets
rng.Offset(I, 0).Value = Sheet.Name
I = I + 1
Next Sheet
End Sub

If you're not familiar with VBA and macros, see David McRitchie's site for
more on "getting started".

http://www.mvps.org/dmcritchie/excel/getstarted.htm

or Ron de De Bruin's site on where to store macros.

http://www.rondebruin.nl/code.htm

In the meantime..........

First...create a backup copy of your original workbook.

To create a General Module, hit ALT + F11 to open the Visual Basic Editor.

Hit CRTL + r to open Project Explorer.

Find your workbook/project and select it.

Right-click and InsertModule. Paste the code in there. Save the
workbook and hit ALT + Q to return to your workbook.

Run or edit the macro by going to ToolMacroMacros.

You can also assign this macro to a button or a shortcut key combo.

To have selectable list of sheets see Debra Dalgleish's site for code to create
a sheet navigation toolbar.

http://www.contextures.on.ca/xlToolbar01.html


Gord Dibben MS Excel MVP


On Sun, 8 Jun 2008 17:07:00 -0700, RW wrote:

I am many tabs in one file and I want to know how many tabs I have and the
name of each tab. How can I do that. I know by right click on the left scroll
bar I can see some, is there a way I can see all the name at one time