Changing Tab names in VBA#

narked

New Member
Joined
Mar 23, 2009
Messages
9
Hello chaps,

newbie question for you. I have looked at some of the other entries about this and nothing really fits what I need.

i have a work book with a list of names, and each name realtes to a seperate tab, 14 names in total, with a sheet at the end that collates figures from all of the sheets.
I want to put a macro/vba code in to automatically change the names of the 14 tabs when the names in the list are amended
I've tried different combinations but nothing really seems to fit, even tried linking the macro to a control button but that hasnt worked either

does anyone have anything that might fit the bill? still getting to grips with the VBA thing but moving forward every day...


thanks in advance chaps :)
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Maybe this. Right click the sheet tab, select View Code and paste in

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Worksheets(Target.Row).Name = Target.Value
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

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