Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

How to make sheet tab name equal to cell value in Excel?

Author Siluvia Last modified

When managing workbooks with multiple worksheets, it is often helpful to give each sheet a descriptive name that matches its content. In many cases, you may want the sheet tab name to reflect the value entered in a specific cell—for example, using the project name entered in cell A1 as the sheet’s name. This approach can simplify navigation, make your data structure clearer, and improve overall efficiency when working with large amounts of information or sharing files with colleagues. In this article, we will introduce several practical methods to make a sheet tab name automatically—or conveniently—match a specific cell value in Excel.

Make sheet tab name equal to cell value with VBA code
Make sheet tab name equal to cell value with Kutools for Excel


Make sheet tab name equal to cell value with VBA code

If you want the worksheet tab name to update dynamically and automatically follow the value in a particular cell, you can accomplish this using VBA (Visual Basic for Applications). This method is particularly useful for templates or files where sheet names need to change based on user input—such as naming sheets after departments, dates, or custom categories. While this solution requires a one-time code setup, it is efficient and eliminates manual renaming.

1. Right-click the sheet tab that you want to automatically link to the value of a cell, then choose View Code from the right-click menu. See below:

A screenshot showing the View Code option in the right-click menu of a sheet tab in Excel

2. In the opening Microsoft Visual Basic for Applications window, copy and paste the following code into the blank Code window. After pasting, press Alt + Q simultaneously to close the window and return to Excel.

VBA code: Make sheet tab equal to cell value

Private Sub Worksheet_Change(ByVal Target As Range)
'Updated by Extendoffice 20230130
    On Error Resume Next
    If Not Intersect(Target, Range("A1")) Is Nothing Then
        ActiveSheet.Name = ActiveSheet.Range("A1")
    ElseIf Not Intersect(Target.Dependents, Range("A1")) Then
        ActiveSheet.Name = ActiveSheet.Range("A1")
    End If
End Sub

Parameter explanation: In the code, A1 denotes the cell whose value you want to use as the sheet name. You can modify "A1" to reference any other cell (e.g., "B2" or "C5") according to your needs.

Now, whenever the value in the designated cell (such as A1) changes, the worksheet tab name will automatically update to match it. This happens without any further manual steps.

Applicable scenarios: Use this method if you want the sheet name to change immediately and automatically when a specific cell’s content is edited.

Limitation: VBA macros must be enabled in your workbook, and you need to save the file as a macro-enabled workbook (*.xlsm). Changing the referenced cell to a name Excel doesn’t allow (such as special characters or exceeding 31 characters) will trigger errors.

Tips and error reminders:

  • Sheet names in Excel cannot exceed 31 characters and may not contain any of the following characters: \ / : ? * [ ]. If the cell value contains invalid characters, the VBA code will display an error.
  • If you need to switch the auto-renaming to reflect a different cell, simply amend the cell reference in the code and save the changes.
  • To enable macros and ensure the code works, your workbook must be saved in a macro-enabled format (*.xlsm).
  • If you want other sheets to behave similarly, repeat the steps for each desired sheet.

Make sheet tab name equal to cell value with Kutools for Excel

For users who prefer not to use VBA or want to batch rename sheets quickly without writing code, Kutools for Excel offers a convenient solution. The Rename Multiple Worksheets utility allows you to rename one or more worksheets according to the values in specific cells. This approach is particularly suited for situations where you need to update several sheet names at once—such as creating monthly reports, team summaries, or when standardizing sheet names across a workbook.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

To rename sheet tabs based on cell values in bulk, please follow these steps:

1. Click Kutools Plus > Worksheet > Rename Multiple Worksheets. See screenshot:

A screenshot of the Kutools Plus menu in Excel highlighting the Rename Multiple Worksheets option

2. In the Rename Multiple Worksheets dialog box, configure your desired settings as follows:

1). In the Worksheets section, check the sheet or sheets you want to rename. You may select a single sheet or multiple sheets for batch processing.
2). Select the Replace original sheet name option under Rename Options.
3). To rename sheets using values from specific cells, choose the From specific range option. Then, specify or select the cell range whose values will be used as the new sheet names. Ensure that the number of cells selected matches the number of sheets you’re renaming to avoid mismatched results.
4). Click the OK button to apply the renaming operation. See screenshot:

A screenshot of the Rename Multiple Worksheets dialog box in Kutools for Excel with options to rename sheets based on cell values

Now, the selected worksheets will immediately be renamed to match the corresponding values in the specified range, as demonstrated below.

A screenshot showing worksheets renamed based on specific range values

Notes:

1. If you have a large number of sheets, use the Filter function at the top of the dialog to quickly find and select the worksheets you want to rename.
2. If you wish to rename each worksheet based on a specific cell value in that sheet (for example, naming each sheet after its own A1 cell value), check the worksheets in the Worksheets list, select the Rename worksheets with specific cell option, and enter the cell reference (such as "A1") in the box. Kutools will retrieve the value from each worksheet’s specified cell and use it as the new name.

A screenshot of the renamed worksheets based on specific range values

3. Please note that using this utility is a one-time update—the worksheet name will not automatically update if you change the cell value later. To update names again, rerun the utility.
4. Ensure that the cell values used for renaming comply with Excel’s rules for sheet names (no forbidden characters, maximum of 31 characters, and no duplicates among the visible sheet names).

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now


Make sheet tab name equal to cell value with Kutools for Excel

 
Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

Excel Word Outlook Tabs PowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in