Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in


How to rename worksheets based on cell values in Excel?

Renaming worksheets is usually applied in our Excel work, but have you ever tried to rename worksheets based on cell values? Of course, you can rename worksheets manually, but here this tutorial introduces some tricks can quickly rename multiple worksheets based on cell values which can save your working time.

Rename worksheets based on a specific cell with VBA

Rename worksheets based on a specific cell with Rename Multiple Worksheets good idea3

Rename worksheets based on a range of cell contents with Rename Multiple Worksheets good idea3

Insert Random Data (insert random integer, date, time, string or custom list in a range.)

excel addin tool for generate random integers dates times strings custom lits

Excel Productivity Tools

Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial

Kutools for Excel: Save 70% of your time and solve 80% Excel problems for you. 300+ advanced features designed for 1500+ work scenario, make Excel much easy and increase productivity immediately. 60-day Unlimited Free Trial

With below VBA, you can rename the relative worksheet based on a specific cell.

1. Select the cell you want to rename worksheet based on, in this case select Cell A1. See screenshot:

doc rename worksheet 1

2. Press Alt + F11 keys to open Microsoft Visual Basic for Applications window.

3. Click Insert > Module, then paste below VBA code to the new Module window.

VBA: Rename worksheets based on a specific cell values.

Sub RenameSheet()
Dim xWs As Worksheet
Dim xRngAddress As String
Dim xName As String
xRngAddress = Application.ActiveCell.Address
For Each xWs In Application.ActiveWorkbook.Sheets
    xName = xWs.Range(xRngAddress).Value
    If xName <> "" Then
        xWs.Name = xName
    End If
End Sub

4. Press F5 key to run VBA code. Then all the worksheets have been renamed by each relative A1 cell values.

doc rename worksheet 2

If you have Kutools for Excel, you do not need to save the VBA code, you can use the Rename Multiple Worksheets feature to quickly rename all worksheet based on their relative cells.

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:

1. Enable the workbook you want to rename its worksheets’ names.

2. Click Enterprise > Worksheet > Rename Multiple Worksheets. See screenshot:

doc rename worksheet 11

3. Then in the popped out dialog, check the sheets you want to rename under Worksheets pane, and select one of the Rename Option you need, here I will replace the sheet name, then check Rename worksheets with specific cell, and select the cell you need to rename by. See screenshot:

doc rename worksheet 9

4. Click Ok. Now the sheets are renamed with specific cell contents.

doc rename worksheet 2

But in sometimes, what you need is to rename multiple worksheets based on a range of cell values as below screenshot shown, in this case, you can choose below method.

doc rename worksheet 3

With Rename Multiple Worksheets of Kutools for Excel, you also can rename the sheets based on a selected range.

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

1. Click Enterprise > Worksheet > Rename Multiple Worksheets. See screenshot:

doc rename worksheet 11

2. In the Rename Multiple Worksheets dialog, you need to specify the settings as these:

(1) Select the worksheets you need to rename from Worksheets list;

(2) Check From specific range option, and select the cell values you need to rename based on;

(3) Specify the Rename Options, you can check Insert before original sheet name, Insert after original sheet name, or Replace original sheet name, and you can preview the corresponding result in the dialog.

doc rename worksheet 10

3. Click Ok, and then you can see all the worksheets you selected have been renamed based on the specified cell values.

Replace original sheet name

doc rename worksheet 6

Insert before original sheet name

doc rename worksheet 7

Insert after original sheet name

doc rename worksheet 8

With Rename Multiple Worksheets utility, you also can rename worksheets with a specific prefix or suffix. Click here to know more about Rename Multiple Worksheets.

Excel Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 70%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 80% Excel problems.

  • Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  • Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  • Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  • No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  • Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  • 60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  • Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
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.

Be the first to comment.