Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

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

DataNumen Home
Products
Free Downloads
Order
Developers
Contact Us
About Us
Partners

« 2 Means to Batch Delete All Emails Sent From or To a


Free Specific Outlook Contact
Search
Software 5 Most Common Cases When Data Recovery Software
MS Office File Will Fail » Recent Posts
Recovery Simpan How Snapshot
Access Replication
3 Quick Ways to Get a List of
Database Works in MS
Recovery SQL Server
Excel All Worksheet Names in an How On-demand
File
Excel Workbook
Recovery
Analytics Service
Works with
Word Azure Data Lake
If you have an Excel workbook that has hundreds of
Document How to Authorize
Recoveryworksheets, and now you want to get a list of all the Additional
Office worksheet names, you can refer to this article. Here we Connections
Recoverywill share 3 simple methods with you. after Connecting
Suite to a Database
Email Data Sometimes, you may be required to generate a list of all Engine in SQL
Recovery worksheet names in an Excel workbook. If there are only Server
Outlook few sheets, you can just use the Method 1 to list the Understanding
Data Hierarchyid Data
sheet names manually. However, in the case that the
Recovery Type in SQL
Excel workbook contains a great number of worksheets,
Exchange Server
Data you had better use the latter 2 methods, which are much How to Deal with
more efficient.
Recovery ‘A Constraint
Other File Violation
Recovery Occurred’
SQL
Method 1: Get List Manually Installation Error
Server in SQL Server
1. First off, open the specific Excel workbook.
Database Recent
Recovery 2. Then, double click on a sheet’s name in sheet list
PDF
Comments
at the bottom.
RMtechtrent on
Document
How to Fix
Recovery
“Could not
BKF
complete the
File
operation. One
Recovery
or more
parameter

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

Free 3. Next, press “Ctrl + C” to copy the name. values are not
valid” Error when
Newsletter Managing Rules
Enter your email in Outlook?
address to subscribe RMtechtrent on
to our company's How to Fix
newsletter. “Could not
complete the
Email Address operation. One
or more
Subscribe parameter
values are not
valid” Error when
Managing Rules
Free Blog 4. Later, create a text file. in Outlook?
RSS 5. Then, press “Ctrl + V” to paste the sheet name. Categories
RSS Feed
Select Category
Archives
Select Month
Free Blog
Newsletter
Enter your email
address to subscribe
to this blog and
receive notifications
of new posts by
email. 6. Now, in this way, you can copy each sheet’s name
to the text file one by one.
Email Address

Subscribe 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/6
3/8/2019 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/6
3/8/2019 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.
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/ 4/6
3/8/2019 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.


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
Method 1 Easy to operate
are a lot of worksheets
Demands you to type the
Method 2 Easy to operate
index first
Quick and
Users should beware of
convenient
Method 3 the external malicious
Easy even for VBA
macros
newbies

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.
https://www.datanumen.com/blogs/3-quick-ways-to-get-a-list-of-all-worksheet-names-in-an-excel-workbook/ 5/6
3/8/2019 3 Quick Ways to Get a List of All Worksheet Names in an Excel Workbook - Data Recovery Blog

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 3 Effective 2 Quick Ways to


Create a List of Methods to Get Get the Data
Hyperlinks to All the Path of the Size of Each
Worksheets in Current Excel Worksheet in an
an Excel Workbook Excel Workbook
Workbook December 14, June 6, 2018
May 30, 2018 2016 In "Excel File
In "Excel File In "Data Recovery"
Recovery" Recovery"

May 28, 2018 @ 3:30 am


Excel Solutions, Outlook PST File Recovery
excel fix, Excel VBA, Excel workbook, Excel worksheet, formula,
List Sheet Names, List Worksheet Names, name manager,
Worksheet Names

© 2019 Data Recovery Blog | Top | Log in


83 mySQL queries in 0.906 seconds.

DataNumen Home |
Products |
Free Downloads |
Order |
Developers |
Contact Us |
About Us |
Partners |

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

You might also like