List of Tabs in Excel: 10 Best Ways to Extract Sheet Names
In this article
- Right-Click Navigation Menu
- The Navigation Pane
- Named Range with GET.WORKBOOK
- INDEX and Named Range Combination
- Power Query (Get Data from Workbook)
- VBA Macro for Automatic Listing
- The XML Map Method
- Using a User Defined Function (UDF)
- Office Scripts for Excel Online
- Third-Party Excel Add-ins
- How to Choose
- Frequently Asked Questions
- Final Thoughts
Extracting a list of tabs in Excel is essential for users managing large workbooks with dozens of sheets who need a central table of contents or a dynamic index. This guide covers ten distinct methods to retrieve sheet names, ranging from built-in navigation shortcuts and basic formulas to advanced Power Query techniques and VBA scripts, catering to both casual users and power users.
Right-Click Navigation Menu
The fastest way to see a complete list of tabs without creating a permanent table is to right-click the navigation arrows in the bottom-left corner of the Excel window. This opens the "Activate" dialog box, which displays every sheet in the workbook in a vertical list. It is ideal for quick navigation in massive files where the horizontal tab bar is overflowed.
The Navigation Pane
Available in newer versions of Microsoft 365, the Navigation Pane can be toggled via the View tab. This opens a sidebar on the right that lists all sheets and the specific objects (tables, charts, ranges) within them. It provides a persistent, searchable list that allows you to jump to any tab instantly without leaving your current view.
Named Range with GET.WORKBOOK
You can use an old Excel 4.0 Macro function to pull sheet names into a cell. By creating a Defined Name (Formulas tab > Name Manager) called "SheetList" with the formula =GET.WORKBOOK(1), you create a dynamic array of all tabs. This is a powerful way to get a list without writing full VBA code, though it requires saving the file as an .xlsm macro-enabled workbook.
INDEX and Named Range Combination
Once you have the GET.WORKBOOK named range established, you can display the names in a column using the INDEX function. Using a formula like =INDEX(SheetList, ROW(A1)) and dragging it down will list every tab name sequentially. This method is worth it because it updates automatically when you add new sheets, provided you recalculate the workbook.
Power Query (Get Data from Workbook)
Power Query is the most robust method for creating a professional table of contents. By going to Data > Get Data > From File > From Excel Workbook and selecting the current file, Power Query loads a metadata table containing the names of all sheets. You can then filter out hidden sheets and load this list directly into a new worksheet as a formatted table.
VBA Macro for Automatic Listing
For those who need a one-click solution, a simple VBA script can loop through the Sheets collection and print names to a specific range. A basic loop using For Each ws In ThisWorkbook.Worksheets allows you to not only list the names but also create clickable hyperlinks to each tab. This is the gold standard for creating automated, interactive dashboards.
The XML Map Method
Advanced users can save a workbook as an .xlsx file (which is essentially a zipped folder of XML files) and extract the workbook.xml file. Inside this XML, the tags list every tab in the file. This is useful for developers who need to audit sheet names across multiple closed workbooks without opening them in Excel.
Using a User Defined Function (UDF)
By writing a custom function in VBA, such as Function GetSheetName(SheetIndex As Integer), you can create a custom formula that works like any standard Excel function. This allows you to call =GetSheetName(1) in a cell to retrieve the first tab's name. It is worth it for users who want the flexibility of VBA but the ease of use of a cell formula.
Office Scripts for Excel Online
For users on the web version of Excel, Office Scripts (TypeScript) can be used to iterate through the workbook's worksheets. A script can be written to fetch workbook.getWorksheets() and write the resulting array into a specific range. This is the only viable automation method for those restricted to the cloud environment where VBA is unsupported.
Third-Party Excel Add-ins
Various productivity add-ins provide "Workbook Manager" tools that include a one-click "List Sheets" feature. These tools often add a custom ribbon tab that can export all tab names to a CSV or a new sheet instantly. This is the best option for non-technical users who handle hundreds of files and cannot spend time writing macros.
How to Choose
The right method depends on your technical comfort level and the intended use of the list. If you only need to find a tab quickly, use the Navigation Pane or Right-Click menu. If you need a permanent, updating list for a report, Power Query is the most stable and professional choice. For interactive indices with hyperlinks, VBA is necessary. If you are working exclusively in a browser, Office Scripts are your only automation option.
Frequently Asked Questions
Do these methods list hidden sheets?
The Right-Click menu and Navigation Pane generally only show visible sheets. However, Power Query and VBA can be configured to list both visible and hidden sheets.
Will the list update if I rename a tab?
Power Query and Named Ranges require a refresh (Data > Refresh All) to reflect name changes. VBA scripts must be re-run to update the list.
Can I create hyperlinks to the tabs automatically?
Yes, this is best achieved via VBA or by using the HYPERLINK function in combination with a list generated by Power Query or a Named Range.
Do I need to save my file as .xlsm for all these methods?
You only need the .xlsm (Macro-Enabled) format if you use VBA, Office Scripts, or the GET.WORKBOOK named range. Power Query and built-in navigation work in standard .xlsx files.
Final Thoughts
Whether you need a simple navigation shortcut or a fully automated index, Excel provides multiple ways to list your tabs. Choosing the method that balances your technical skill with the need for automation ensures your workbooks remain organized and easy to navigate as they grow in complexity.