ExtendOffice - Professional Add-ins and Tools for Microsoft Office
fackbook twitter

How to list all worksheet names in Excel?

We may need to get a list of worksheet names in a workbook. For example, we might want to create an index of worksheet names in workbook. To make such a list is not simple, this tutorial is giving instructions on how to list worksheet names in Excel.

List all worksheet names with VBA code

List all worksheet names and link to each sheet with Kutools for Excel

List all worksheet names vertically on the left side with Kutools for Excel


List all worksheet names and link to each sheet:

With Kutools for Excel's Create List of Sheet Names utility, you can quickly list all worksheet names in a new sheet with hyperlinks or macro buttons as you need.

    worksheet names with hyperlinks   worksheet names with macro buttons
doc-list-worksheet-names2  2 doc-list-worksheet-names2  2 doc-list-worksheet-names2

arrow blue right bubble List worksheet names by using VBA code


The following two VBA codes can help you list all of the worksheet names in a new worksheet or the active worksheet. Please do as this:

1. Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.

2. Click Insert > Module, and paste the following code in the Module Window.

VBA: List all worksheet names in a new worksheet:

Sub ListWorkSheetNamesNewWs()
'Updateby20140624
Dim xWs As Worksheet
On Error Resume Next
Application.DisplayAlerts = False
xTitleId = "KutoolsforExcel"
Application.Sheets(xTitleId).Delete
Application.Sheets.Add Application.Sheets(1)
Set xWs = Application.ActiveSheet
xWs.Name = xTitleId
For i = 2 To Application.Sheets.Count
    xWs.Range("A" & (i - 1)) = Application.Sheets(i).Name
Next
Application.DisplayAlerts = True
End Sub

2. Then click doc-merge-multiple-workbooks-button button to run the code, and all of the worksheet names in active workbook have been listed into a new worksheet called KutoolsforExcel, see screenshot:

doc-list-worksheet-names1

The above code only support to create a list of all worksheet names in the workbook, but if you want to add links to the worksheet names, how could you do? The following method may help you.


arrow blue right bubble List all worksheet names and link to each sheet with Kutools for Excel

With the Create List of Sheet Names utility of the third party add-in Kutools for Excel, you are able to create a list of worksheet names in one click, and link to each worksheet with hyperlink.

Kutools for Excel : with more than 120 handy Excel add-ins, free to try with no limitation in 60 days

After installing Kutools for Excel, please do as follows:

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

doc-list-worksheet-names1

2. In the Create List of Sheet Names dialog box, please specify the following settings:

doc-list-worksheet-names2

(1.) Choose sheet index styles you like, you can create the worksheet names with hyperlinks or with macro buttons.

(2.) Enter the worksheet names for sheet index.

(3.) Specify the location of the worksheet index.

(4.) Specify how much columns you want to use in the new worksheet to display the worksheet names.

Free Download Kutools for Excel Now!

3. After finishing the settings, then click OK. All of the worksheet names have been listed with links in a new worksheet of the current workbook. See screenshot:

worksheet names with hyperlinks worksheet names with macro buttons
doc-list-worksheet-names3 doc-list-worksheet-names4

Click to know more about this feature.

Free Download Kutools for Excel Now!


arrow blue right bubble List all worksheet names vertically on the left side with Kutools for Excel

Kutools for Excel’s Navigation Pane also can help you list all opened workbooks and worksheets vertically on the left side of the workbook. Please do as follows:

Click Kutools > Navigation > Workbook & Sheet icon, and all opened workbooks and worksheets are listed as follows:

(1.) All the opened workbooks are listed into the top list box, you can click one to locate the workbook;

(2.) All the worksheets with the selected workbook are listed below, please click one to go to the sheet.

doc-list-worksheet-names4

Free Download Kutools for Excel Now!


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 200 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

btn read more      btn download     btn purchase

Add comment


Security code
Refresh