View Single Post
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)

On Error GoTo wb_exit
Application.EnableEvents = False

With Target
If .Address = "$H$1" Then
Sh.Name = .Value
End If
End With

wb_exit:
Application.EnableEvents = True
End Sub


'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--
HTH

Bob Phillips

"fullers" wrote in message
...
I am looking to automatically name the tabs in my spreadsheet based on a
name/data within that worksheet. Is this possible