Excel - Auto Updating Tab Names
#2
Scooby Regular
Join Date: Jun 2002
Location: Perth, Western Australia
Posts: 1,866
Likes: 0
Received 0 Likes
on
0 Posts
You could try this bit of code.
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False 'stops change event repeating
'takes the value of cell A1 and renames the active sheet
ActiveWorkbook.ActiveSheet.Name = Cells(1, 1).Value
Application.EnableEvents = True
End Sub
HTH
Mark
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False 'stops change event repeating
'takes the value of cell A1 and renames the active sheet
ActiveWorkbook.ActiveSheet.Name = Cells(1, 1).Value
Application.EnableEvents = True
End Sub
HTH
Mark
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
An0n0m0us
Computer & Technology Related
0
28 September 2015 09:58 PM