Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in


How to create a dynamic list of worksheet names in Excel?

If you have multiple sheets in a workbook, and you want to create a dynamic list of all sheet names in a new sheet in the workbook, how can you do? Now this tutorial introduces some tricks to quickly complete this mission in Excel.

Create a dynamic list of worksheet names with Define Name and Formula

Create a dynamic list of worksheet names with VBA code

Create a dynamic list of worksheet names with Kutools for Excel good idea3

Display a dynamic list of worksheet names with Kutools for Excel good idea3

Navigation Pane -- Workbook & Sheet (view all open workbooks are list, and all sheets
of the current workbook are list in the pane, you can click the sheet name to switch to it.)

doc navigation list sheet

1. Select a cell in a blank sheet, here I select A1, and then click Formulas > Define Name. see screenshot:

formula Never need to worry about long long formulas in Excel anymore! Kutools for Excel's Auto Text can add all formulas to a group
as auto text, and liberate your brain! Click here to know Auto Text     Click here to get free trial

2. Then in the New Name dialog, type Sheets in to the Name textbox (you can change as you need), and type this formula =SUBSTITUTE(GET.WORKBOOK(1),"["&GET.WORKBOOK(16)&"]","") into the Refers to textbox. See screenshot:

3. Click OK. The go to the selected cell (A1) and type this formula =INDEX(Sheets,ROWS($A$1:$A1)) (A1 is the cell you type this formula, "Sheets" is the name you defined in Step 2) into it, then drag the autofill handle down until #REF! appears.

Tip: If there are worksheets removed or added, you need to go to A1and press Enter key then rag the autofill handle again.

If you want to create a dynamic list of worksheet names which can link to each sheet, you can use VBA code.

1. Create a new worksheet and rename it as Index. See screenshot:

doc-dynamic-worksheetname-list-5       doc-dynamic-worksheetname-list-6

2. Right click at the sheet name of Index, select View Code from context menu. See screenshot:

3. In the popping window, copy and paste below VBA code into it.

VBA: Create dynamic list of worksheet names.

Private Sub Worksheet_Activate()
	Dim xSheet As Worksheet
	Dim xRow As Integer
	Dim calcState As Long
	Dim scrUpdateState As Long
	Application.ScreenUpdating = False
	xRow                       = 1
	With Me
		.Cells(1, 1) = "INDEX"
		.Cells(1, 1).Name = "Index"
	End With
	For Each xSheet In Application.Worksheets
		If xSheet.Name <> Me.Name Then
			xRow                     = xRow + 1
			With xSheet
				.Range("A1").Name = "Start_" & xSheet.Index
				.Hyperlinks.Add anchor: = .Range("A1"), Address: = "", _
				SubAddress:             = "Index", TextToDisplay: = "Back to Index"
			End With
			Me.Hyperlinks.Add anchor: = Me.Cells(xRow, 1), Address: = "", _
			SubAddress: = "Start_" & xSheet.Index, TextToDisplay: = xSheet.Name
		End If
	Application.ScreenUpdating = True
End Sub

4. Click Run or F5 to run the VBA, now a dynamic list of worksheet names is created.


1. When the worksheet of the workbook is deleted or inserted, the worksheet names list will auto change.

2. You can click at the sheet name of the names list to go to the sheet.

With above two methods are not convinient enough, if you are interested in new utility, You can go next two methods which may make this task more easier.

 If you only want to quickly list all worksheet names of the workbook and link them to the original sheets, you can use Kutools for Excel’s Create List of Sheet Names.

Kutools for Excel, with more than 120 handy Excel functions, enhance your working efficiency and save your working time.

After free installing Kutools for Excel, please do as below:

1. Click Enterprise > Worksheet > Create List of Sheet Names. See screenshot:

doc dynamic worksheetname 17

2. In the Create List of Sheet Names dialog:

(1) Check the index style you need in Sheet Index Styles section;
(2) Name the new index sheet with typing the data into Specify sheet name for Sheet Index text box;
(3) Specify the location you will place the added index sheet in in the Insert the Sheet Index in list;
(4) If you want to display the sheet names in a single list, select 1 column in Displaying Sheet Index into list.

3. Click Ok. Now you can see the sheet names are listed.


1. You can click at the sheet name to quickly shift to its original sheet.

2. The list or sheet names cannot dynamically change with the sheets inserting or deleting.

3. Actually, you also can create a list of button to link the relative sheet, just need to check Contains Buttons and Macros in the dialog. see screeshshot:
doc dynamic worksheetname list 16

Click here to know more about Create List of Sheet Names.

If you With Kutools for Excel, you also can use the Navigation utility to display the linkable worksheet names in a pane

After free installing Kutools for Excel, please do as below:

1. Click Kutools > Navigation. See screenshot:

2. Then a pane appears in the active sheet, click Workbook & Sheet to show the workbook and worksheet, and you can select a workbook, then its worksheets will display in the Navigation pane. See screenshots:

doc-dynamic-worksheetname-list-13          doc-dynamic-worksheetname-list-14


When there are worksheets deleted or added, you can click the refresh button in the Navigation pane to refresh the worksheet names.

Click here for more information about Navigation.

Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 300 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Kelly · 10 months ago
    Thanks for this helpful info. I created a dynamic list with VBA code in the Index tab. I found that it only updates when I click back to the Index tab, though. Is there a way to ensure it auto updates as soon as a new tab is created? I refer to the tab names elsewhere in the workbook and others will be using it so I'm trying to make it seamless. Thank you!
    • To post as a guest, your comment is unpublished.
      Sunny · 8 months ago
      Sorry, I do not find that code can finish your job.
  • To post as a guest, your comment is unpublished.
    Ed Bower · 1 years ago
    Or you can simply rightClick either the left or right tab-horizontal-scroll arrow at the bottomLeft, and then click the worksheet name (from the simple vertical list) that you want to jump to.
  • To post as a guest, your comment is unpublished.
    PB · 1 years ago
    Just what I needed and worked perfectly. Thank you!
  • To post as a guest, your comment is unpublished.
    KP · 1 years ago
    Defining the name "Sheets" in the define name DOES NOT WORK. The "refers to" box will not save the formula as typed and converts it to a text string.
  • To post as a guest, your comment is unpublished.
    j4h54n84 · 2 years ago
    how can I use this code to create the list of worksheets in horizontal order instead of vertical? is it possible?