S
Steved
Hello from Steved
I've entered the below in a Module (view code then paste)
in Cell B3 I entered = Now I formated it d-mmm.
Please can you explain to me what I have done wrong as it
is diplaying #NAME?
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Count > 1 Then Exit Sub
If Not Intersect(Range("A2:A10"), .Cells) Is
Nothing Then
Application.EnableEvents = False
If IsEmpty(.Value) Then
.Offset(0, 1).ClearContents
Else
With .Offset(0, 1)
.NumberFormat = "dd mmm"
.Value = Now
End With
End If
Application.EnableEvents = True
End If
End With
End Sub
I've entered the below in a Module (view code then paste)
in Cell B3 I entered = Now I formated it d-mmm.
Please can you explain to me what I have done wrong as it
is diplaying #NAME?
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Count > 1 Then Exit Sub
If Not Intersect(Range("A2:A10"), .Cells) Is
Nothing Then
Application.EnableEvents = False
If IsEmpty(.Value) Then
.Offset(0, 1).ClearContents
Else
With .Offset(0, 1)
.NumberFormat = "dd mmm"
.Value = Now
End With
End If
Application.EnableEvents = True
End If
End With
End Sub