G
Guest
Hey Guys -
I'm trying to automate the sheet names on specific sheets only (not globally
within the workbook), and I'm stumped. Here's what I typed in under "This
Workbook":
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target
As Range)
Sheet4.Name = Range("d11").Value
Sheet5.Name = Range("d12").Value
Sheet6.Name = Range("d13").Value
End Sub
and I typed this into Sheets 4,5 & 6 only.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
ActiveSheet.Name = Range("d11").Value
End Sub
I'm changing the Range value in sheets 5 & 6 respectively. It worked once,
but it keeps erroring out now.
What am I doing wrong ???
I'm trying to automate the sheet names on specific sheets only (not globally
within the workbook), and I'm stumped. Here's what I typed in under "This
Workbook":
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target
As Range)
Sheet4.Name = Range("d11").Value
Sheet5.Name = Range("d12").Value
Sheet6.Name = Range("d13").Value
End Sub
and I typed this into Sheets 4,5 & 6 only.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
ActiveSheet.Name = Range("d11").Value
End Sub
I'm changing the Range value in sheets 5 & 6 respectively. It worked once,
but it keeps erroring out now.
What am I doing wrong ???