Log in
x
or
x
x
Register
x

or
0
0
0
s2smodern

How to quickly insert sheet names in cells in Excel?

Is there an easy way to insert the current worksheet's name in one cell? How to insert all worksheets' name in cells? This article will bring you tricky methods to solve these problems.

Quickly insert current sheet name in a cell with functions

Quickly insert all sheet names in cells with VBA

Quickly insert active sheet’s name with Kutools for Excel good idea3

Quickly insert all sheet names with hyperlinks in cells as an index good idea3


goodInsert Workbook Information

Kutools for Excel's Insert Workbook Information utility can quickly insert sheet name, path, user name and
so on to a cell, header or footer.
doc 1

arrow blue right bubble Quickly insert current sheet name in a cell with functions


Just enter the formula of =RIGHT(CELL("filename",D2),LEN(CELL("filename",D2))-FIND("]",CELL("filename",D2))) in any cell and press Enter key, it shows the current worksheet's name in the cell.
doc-insert-sheets-name-into-cells1

This formula is only able to show current worksheet's name, but not other worksheet's name.

formula Never need to worry about long long formulas in Excel anymore! Kutools for Excel's Auto Text can add all formulas to a group
as auto text, and liberate your brain! Click here to know Auto TextClick here to get free trial

arrow blue right bubble Quickly insert all sheet names in cells with VBA

If you want to inset all sheet names in cells, VBA macro is a good choice.

Step 1: Hold down the Alt + F11 keys in Excel, and it opens the Microsoft Visual Basic for Applications window.

Step 2: Click Insert > Module, and paste the following macro in the Module Window.

VBA for inserting all worksheets' names in cells:

Sub SheetNames()
Columns(1).Insert
For i = 1 To Sheets.Count
Cells(i, 1) = Sheets(i).Name
Next i
End Sub

Step 3: Press the F5 key to run this macro. Then you will all worksheets' name are listed in Column A of current worksheet. See screenshot:
doc-insert-sheets-name-into-cells2


arrow blue right bubble Quickly insert active sheet’s name with Kutools for Excel

If you want to insert the active sheet’s information including sheet name, workbook name, file path and so on to a cell or header/footer, you can use Kutools for Excel’s Insert Workbook Information.

Kutools for Excel, with more than 120 handy Excel functions, enhance working efficiency and save working time.

After free installing Kutools for Excel, please do as below:

1. Select a cell or a range to put the sheet name, and click Enterprise > Workbook > Insert Workbook Information.doc insert worksheet information 1

2. Then select the workbook information you need to insert from Information section, and specify the location you want to place the information from Insert at section. Then click OK.

doc 1

You can click here to know more about Insert Workbook Information.

arrow blue right bubble Insert workbook information into cell/Header/Footer


arrow blue right bubble Quickly insert all sheet names with hyperlinks in cells as an index

Kutools for Excel's Create List of Sheet Name utility not only inserts all sheet names in cells, but also insert hyperlinks to corresponding sheets too.

Kutools for Excel, with more than 120 handy Excel functions, enhance your working efficiency and save your working time.

After free installing Kutools for Excel, please do as below:

Step 1: Click the Enterprise > Worksheet Tools > Create List of Sheet Names.
doc-insert-sheets-name-into-cells3

Step 2: In the Create List of Sheet Names dialog box, specify the settings according to your needs, and click OK.
doc-insert-sheets-name-into-cells4

Then you will see all sheet names are inserted in a new worksheet, and each sheet name link to corresponding worksheet. See following screenshots:

Worksheet names with hyperlinks
Worksheet names with macro buttons
doc-insert-sheets-name-into-cells5
doc-insert-sheets-name-into-cells6

The Create List of Sheet Name utility makes it easy for you to create a list of all worksheet names of the active workbook in a new worksheet, which contains hyperlinks or macro buttons for quickly navigate to other worksheets. Click to know more about this utility.

arrow blue right bubble List all sheet names with hyperlinks



Kutools for Excel: 200 + functions you must have in Excel, 60-day free trial from here

good idea4Combine Worksheets

In sometimes, you may be confused with consolidate or combine multiple sheets/ranges into one sheet or one workbook for some special work, but a powerful utility of Kutools for Excel, Combine Worksheets function can quickly help you handle this job.
doc combine

Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 200 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

btn read more      btn download     btn purchase

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Adolphles · 4 months ago
    Thanks!! this was was a great help.
  • To post as a guest, your comment is unpublished.
    Anas · 7 months ago
    Hi

    Kindly i want VBA code to insert file name in specific cell.

    Thanks
  • To post as a guest, your comment is unpublished.
    Abdul R Shaikh · 8 months ago
    Great site was very helpful.
    I have different tab names and I get the names in one sheet using your code, but it gives names of all the tab names, is there anyway we can add code to select from certain tab number or something like that.
  • To post as a guest, your comment is unpublished.
    mohamed ahmed · 1 years ago
    I have multiple project sheets database with different tab name and this name is shown in master sheet table. which formula can i give that when i insert new tab it should automatically updated in master table.
  • To post as a guest, your comment is unpublished.
    Elise Mansour · 1 years ago
    Can anyone help me with this:
    Create a macro that creates 10 sheets and name them Sheet1 to Sheet10 but using a loop