However my last question: - is theres any way to do it automatically instead of everytime I rename B2 have to do Run Macro Dialog?
Excel 2007 | |||
---|---|---|---|
B | |||
2 | Sheet1 | ||
Sheet1 |
Excel 2007 | |||
---|---|---|---|
B | |||
2 | Customer1 | ||
Customer1 |
Excel 2007 | |||
---|---|---|---|
B | |||
2 | Lucan | ||
Lucan |
Private Sub Worksheet_Change(ByVal Target As Range)
' hiker95, 12/29/2016, ME982790
If Intersect(Target, Range("B2")) Is Nothing Then Exit Sub
With Application
.EnableEvents = False
.ScreenUpdating = False
With ActiveSheet
If Not .Range("B2") = vbEmpty Then
.Name = .Range("B2").Value
End If
End With
.EnableEvents = True
.ScreenUpdating = True
End With
End Sub
I am glad that Hiker could get you where you needed to be.
can this be modified to do the same to the left footer, referencing "N2" as the data different for each sheet in the workbook?