Skip to main content

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

Author Sun Last modified

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


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

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

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:
New Name dialog

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.
Formula entered in cells and #REF! appears

Tip: If there are worksheets removed or added, you need to go to A1 and press Enter key then drag the autofill handle again.
Formula entered again in cells and #REF! appears


Create a dynamic list of worksheet names with VBA code

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:

Rename option on the right-clicking menu       Worksheet renamed as Index

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

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

VBA: Create dynamic list of worksheet names.

Private Sub Worksheet_Activate()
	'Updateby20150305
	Dim xSheet As Worksheet
	Dim xRow As Integer
	Dim calcState As Long
	Dim scrUpdateState As Long
	Application.ScreenUpdating = False
	xRow                       = 1
	With Me
		.Columns(1).ClearContents
		.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
	Next
	Application.ScreenUpdating = True
End Sub

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

Tip:

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.


Create a dynamic list of worksheet names with Kutools for Excel

 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 offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

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

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

Create List of Sheet Names option on the Kutools Plus tab on the ribbon

2. In the Create List of Sheet Names dialog:

 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.
Sheet name list is created

Tips:

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 buttons to link to relative sheets, just need to check Contains Buttons and Macros in the dialog. see screeshshot:
List of buttons to link to relative sheets is created

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

  Create Clickable List of Sheet Names

Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

Display a dynamic list of worksheet names with Kutools for Excel

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. 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 screenshot:
Workbook & Sheet pane   

Tip:

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

Click here for more information about Navigation.

  Navigation Pane -- List Sheets

Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!