fitzluck13
New Member
- Joined
- Nov 30, 2005
- Messages
- 9
A previous user ask for code in relation to referencing a cell in a worksheet that will then use this cell to name the tab in the worksheet. See below code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Address = "$A$1" Then Sh.Name = Target
End Sub
However when I add this to my workbook module the sheet tab name does not change. Can anyone provide some input as to what might be wrong?
Thank you
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Address = "$A$1" Then Sh.Name = Target
End Sub
However when I add this to my workbook module the sheet tab name does not change. Can anyone provide some input as to what might be wrong?
Thank you