S
s
How do you have an worksheet automatically name itself
from a certain cell in the worksheet?
from a certain cell in the worksheet?
Except I changed A1 to D6, which contained the name IIf Target.Cells.Count > 1 Then Exit Sub
If Intersect(Target, Me.Range("A1")) Is Nothing Then Exit Sub
On Error GoTo CleanUp:
With Target
If .Value <> "" Then
Application.EnableEvents = False
Me.Name = .Value
End If
End With
CleanUp:
Application.EnableEvents = True
End Sub