How to create a list of all worksheet names from a workbook?
Supposing, you have a workbook with multiple worksheets, now you want to list all of the sheet names in current workbook, is there any quick method for creating a list of theses sheet names in Excel without typing them one by one? This tutorial is giving instructions on how to list worksheet names in Excel.
Note: In the above formula, Sheetnames is the range name you are crested in step 3.
5. And then drag the fill handle down to the cells when blank cells are displayed, and now, all sheet names of current workbook have been listed as below screenshot shown:
6. If you want to create the hyperlink for each sheet, please use the below formula:
=HYPERLINK("#'"&A2&"'!A1","Go To Sheet")
Note: In the above formula, A2 is the cell that contains the sheet name, and A1 is the cell where you want the active cell to be located. For example, if you click the hyperlink text, it will locate the cell A1 of the sheet.
7. Now, when you click the hyperlink text, it will take you to that sheet, see below demo:
1. With the above formulas, the created sheet names are listed dynamically, when you change the sheet name in the workbook, the index sheet name will be updated automatically.
2. You should save the file as Excel Macro-Enabled Workbook format, if you want the formulas work well after the file is closed and reopened.
Get a list of all worksheet names from a workbook with a useful feature
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.
Note:To apply this Create List of Sheet Names, firstly, you should download the Kutools for Excel, and then apply the feature quickly and easily.
Get a list of all worksheet names from a workbook with VBA code
1. Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.
2. Click Insert > Module, and paste the following macro in the Module Window.
VBA: List all worksheet names with hyperlinks in a new worksheet:
Dim xAlerts As Boolean
Dim I As Long
Dim xShtIndex As Worksheet
Dim xSht As Variant
xAlerts = Application.DisplayAlerts
Application.DisplayAlerts = False
On Error Resume Next
On Error GoTo 0
Set xShtIndex = Sheets.Add(Sheets(1))
xShtIndex.Name = "Index"
I = 1
Cells(1, 1).Value = "INDEX"
For Each xSht In ThisWorkbook.Sheets
If xSht.Name <> "Index" Then
I = I + 1
xShtIndex.Hyperlinks.Add Cells(I, 1), "", "'" & xSht.Name & "'!A1", , xSht.Name
Application.DisplayAlerts = xAlerts
3. Press the F5 key to run this macro. Now all of the worksheet names in active workbook have been listed into a new worksheet called Index, and the sheet names are linked to each sheet as well, see screenshot:
List All Filenames In A Folder And Create Hyperlinks For Them For your daily work, you may need to import multiple filenames from a folder to a worksheet, and create hyperlinks for each files so that open the file quickly and easily. Maybe, you can copy and paste the filenames and create a hyperlink for it one by one manually, but, this will waste much time if there are hundreds files in the folder.
Copy Or Move Files From One Folder To Another Based On A List If you have a list of file names in a column in a worksheet, and the files locate in a folder in your computor. But, now, you need to move or copy these files which names are listed into the worksheet from their original folder to another one as following screenshot shown. How could you finish this task as quickly as you can in Excel?
Navigate Between Worksheets By Using Drop Down List Supposing, you have a workbook which contains multiple worksheets, now, you need to create a drop down list or combo box which lists all sheet names and when you select one sheet name from the drop down list, it will jump to that sheet immediately. This article, I will introduce how to navigate between worksheets by using a drop down list in Excel.