is it possible to name sheets from cell reference?

rexcel3

New Member
Joined
Apr 16, 2022
Messages
29
Office Version
  1. 2021
Platform
  1. Windows
is it possible to name sheets from cell reference from another sheet?

example:
i have a list of 4 names in sheet 1.

i want to name sheet 4, 5, 6, 7 from those names in sheet 1.

name 1 --> sheet 4
name 2 --> sheet 5
name 3 --> sheet 6
name 4 --> sheet 7
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
i want to name sheet 4, 5, 6, 7 from those names in sheet 1.
From where exactly in Sheet 1 are these names found?
You need to tell us the EXACT cell addresses where these names occur if you want us to create some VBA code to do this for you.
 
Upvote 0
From where exactly in Sheet 1 are these names found?
You need to tell us the EXACT cell addresses where these names occur if you want us to create some VBA code to do this for you.
they start from A2 and downwards.

i got a range connected to a table there.
 
Upvote 0
Try this code:
VBA Code:
Sub RenameSheets()

    Dim i As Long
    
    For i = 2 To ActiveWorkbook.Worksheets.Count
        Sheets(i).Name = Sheets(1).Cells(i, "A")
    Next i
    
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,917
Members
449,093
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top