Professional Documents
Culture Documents
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
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/ 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
=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
=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
Sub ListSheetNamesInNewWorkbook()
Dim objNewWorkbook As Workbook
Dim objNewWorksheet As Worksheet
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
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
Author Introduction:
Related
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