You are on page 1of 8

7/21/2020 3 Quick Ways to Get a List of All Worksheet Names in an Excel Workbook - Data Recovery Blog

Search
Search
Cancel

Product Quicklinks
Quick Download
Quick Buy

30 day money back guarantee

Products
Downloads
Order
Developers
Support Center
Company
Partners

Products
Downloads
Order
Developers
Support Center
Company
Partners

Home Solutions Office Solutions Excel Solutions 3 Quick Ways to Get a List of All Worksheet Names in an Excel Workbook

3 Quick Ways to Get a List of All Worksheet Names in an Excel Workbook


Excel Solutions, Outlook PST File Recovery By AuthorCCW

If you have an Excel workbook that has hundreds of worksheets, and now you want to get a list of all the worksheet names, you can
refer to this article. Here we will share 3 simple methods with you.

Sometimes, you may be required to generate a list of all worksheet names in an Excel workbook. If there are only few sheets, you can
just use the Method 1 to list the sheet names manually. However, in the case that the Excel workbook contains a great number of
worksheets, you had better use the latter 2 methods, which are much more efficient.

Method 1: Get List Manually


1. First off, open the specific Excel workbook.
2. Then, double click on a sheet’s name in sheet list at the bottom.
3. Next, press “Ctrl + C” to copy the name.

https://www.datanumen.com/blogs/3-quick-ways-to-get-a-list-of-all-worksheet-names-in-an-excel-workbook/ 1/8
7/21/2020 3 Quick Ways to Get a List of All Worksheet Names in an Excel Workbook - Data Recovery Blog
4. Later, create a text file.
5. Then, press “Ctrl + V” to paste the sheet name.

6. Now, in this way, you can copy each sheet’s name to the text file one by one.

Method 2: List with Formula


1. At the outset, turn to “Formulas” tab and click the “Name Manager” button.
2. Next, in popup window, click “New”.

3. In the subsequent dialog box, enter “ListSheets” in the “Name” field.


4. Later, in the “Refers to” field, input the following formula:

=REPLACE(GET.WORKBOOK(1),1,FIND("]",GET.WORKBOOK(1)),"")

https://www.datanumen.com/blogs/3-quick-ways-to-get-a-list-of-all-worksheet-names-in-an-excel-workbook/ 2/8
7/21/2020 3 Quick Ways to Get a List of All Worksheet Names in an Excel Workbook - Data Recovery Blog

5. After that, click “OK” and “Close” to save this formula.


6. Next, create a new worksheet in the current workbook.
7. Then, enter “1” in Cell A1 and “2” in Cell A2.
8. Afterwards, select the two cells and drag them down to input 2,3,4,5, etc. in Column A.

9. Later, put the following formula in Cell B1.

=INDEX(ListSheets,A1)

https://www.datanumen.com/blogs/3-quick-ways-to-get-a-list-of-all-worksheet-names-in-an-excel-workbook/ 3/8
7/21/2020 3 Quick Ways to Get a List of All Worksheet Names in an Excel Workbook - Data Recovery Blog

10. At once, the first sheet name will be input in Cell B1.

https://www.datanumen.com/blogs/3-quick-ways-to-get-a-list-of-all-worksheet-names-in-an-excel-workbook/ 4/8
7/21/2020 3 Quick Ways to Get a List of All Worksheet Names in an Excel Workbook - Data Recovery Blog
11. Finally, just copy the formula down until you see the “#REF!” error.

Method 3: List via Excel VBA


1. For a start, trigger Excel VBA editor according to “How to Run VBA Code in Your Excel“.
2. Then, put the following code into a module or project.

Sub ListSheetNamesInNewWorkbook()
Dim objNewWorkbook As Workbook
Dim objNewWorksheet As Worksheet

Set objNewWorkbook = Excel.Application.Workbooks.Add


Set objNewWorksheet = objNewWorkbook.Sheets(1)

For i = 1 To ThisWorkbook.Sheets.Count
objNewWorksheet.Cells(i, 1) = i
objNewWorksheet.Cells(i, 2) = ThisWorkbook.Sheets(i).Name
Next i

With objNewWorksheet
.Rows(1).Insert
.Cells(1, 1) = "INDEX"
.Cells(1, 1).Font.Bold = True
.Cells(1, 2) = "NAME"
.Cells(1, 2).Font.Bold = True
.Columns("A:B").AutoFit
End With
End Sub
https://www.datanumen.com/blogs/3-quick-ways-to-get-a-list-of-all-worksheet-names-in-an-excel-workbook/ 5/8
7/21/2020 3 Quick Ways to Get a List of All Worksheet Names in an Excel Workbook - Data Recovery Blog

3. Later, press “F5” to run this macro right now.

https://www.datanumen.com/blogs/3-quick-ways-to-get-a-list-of-all-worksheet-names-in-an-excel-workbook/ 6/8
7/21/2020 3 Quick Ways to Get a List of All Worksheet Names in an Excel Workbook - Data Recovery Blog
4. At once, a new Excel workbook will show up, in which you can see the list of worksheet names of the source Excel workbook.

Comparison
Advantages Disadvantages
Too troublesome if there are a lot of
Method 1 Easy to operate
worksheets
Method 2 Easy to operate Demands you to type the index first
Quick and convenient Users should beware of the external
Method 3
Easy even for VBA newbies malicious macros

Excel Gets Corrupted


MS Excel is known to crash from time to time, thereby damaging the current files on saving. Therefore, it’s highly recommended to get
hold of an external powerful Excel fix tool, such as DataNumen Outlook Repair. It’s because that self-recovery feature in Excel is
proven to fail frequently.

Author Introduction:
Shirley Zhang is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including sql fix
and outlook repair software products. For more information visit www.datanumen.com

Related

3 Methods to Create a List of Hyperlinks to 3 Effective Methods to Get the Path of the 2 Ways to Batch Move All Charts from All
All Worksheets in an Excel Workbook Current Excel Workbook Existing Worksheets to a New Created One in
May 30, 2018 December 14, 2016 Excel Workbook
In "Excel File Recovery" In "Data Recovery" June 8, 2018
In "Excel File Recovery"

https://www.datanumen.com/blogs/3-quick-ways-to-get-a-list-of-all-worksheet-names-in-an-excel-workbook/ 7/8
7/21/2020 3 Quick Ways to Get a List of All Worksheet Names in an Excel Workbook - Data Recovery Blog
← Previous post
Next post →

Comments are closed.

Recent Posts
3 Handy Tips for Recovering Corrupt Oracle Database Files
How to Recover Your DBF Database Using the DataNumen DBF Repair Tool
3 Myths about Data Recovery that Do More Harm than Good
3 Myths about Data Recovery Debunked
3 Messages that Mean You Have Data Loss Problems – And 3 Programs That Can Help
How to Recover Corrupted Microsoft Access Databases

Categories

Select Category

Archives
Select Month

Free Blog Newsletter

Get notifications of new posts:

Email Address

Subscribe

Follow or like us on Facebook, LinkedIn and Twitter to get all promotions, latest news and updates on our products and company.

Subscribe

Your Email

Latest posts

3 Handy Tips for Recovering Corrupt Oracle Database Files


How to Recover Your DBF Database Using the DataNumen DBF Repair Tool
3 Myths about Data Recovery that Do More Harm than Good

Privacy Policy
Cookie Policy
Refund Policy
Upgrade Policy
Support and Maintenance Policy
Terms of Use
Site map

Copyright © 2020 DataNumen, Inc. - All rights reserved.

https://www.datanumen.com/blogs/3-quick-ways-to-get-a-list-of-all-worksheet-names-in-an-excel-workbook/ 8/8

You might also like