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 all sheet names with hyperlinks in cells as an index

Recommended Productivity Software

Office Tab: Use tabbed interface in Office as the use of web browser Chrome, Firefox and Internet Explorer.
Kutools for Excel: Adds 120 powerful new features to Excel. Increase your productivity in 5 minutes. Save two hours every day!
Classic Menu for Office: Brings back your familiar menus to Office 2007, 2010 and 2013 (includes Office 365).

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

Hint


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.


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 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 includes more than 120 handy Excel tools. Free to try with no limitation in 30 days. Get it Now.

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 hyperlinksWorksheet names with macro buttons
doc-insert-sheets-name-into-cells5doc-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.


Is your problem solved?

Recommended Productivity Tools

The following tools will greatly save your time and effort, which one do you prefer?
Office Tab: Using handy tabs in your Office, as the way of Chrome, Firefox and New Internet Explorer.
Kutools for Excel: 120 powerful new functions for Excel, Increase your productivity in 5 minutes. Save two hours every day!
Classic Menu for Office: Bring back familiar menus to Office 2007, 2010, 2013 and 365, as if it were Office 2000 and 2003.

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 More than 120 powerful advanced functions which designed for Excel:

  • 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