P
papa
I am trying to create (as much as my inexperience will
allow) a routine that will update the date/time in cell
h23 everytime the content in g23 changes. Below I have an
attempt that doesn't seem to do anything.
Any help would be very appreciated.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Intersect(Target, Me.Range("g23")) Is Nothing
Then Exit Sub
Application.EnableEvents = False
With Me.Cells(Target.Row, "h23")
.Value = Date
.NumberFormat = "mm/dd/yyy"
End If
End Sub
allow) a routine that will update the date/time in cell
h23 everytime the content in g23 changes. Below I have an
attempt that doesn't seem to do anything.
Any help would be very appreciated.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Intersect(Target, Me.Range("g23")) Is Nothing
Then Exit Sub
Application.EnableEvents = False
With Me.Cells(Target.Row, "h23")
.Value = Date
.NumberFormat = "mm/dd/yyy"
End If
End Sub