Hi,
I have the following formula which date stamps into column D when something is entered into column E
is there a way to delete the entry if the cell in E has been deleted
Many thanks
I have the following formula which date stamps into column D when something is entered into column E
is there a way to delete the entry if the cell in E has been deleted
Many thanks
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rInt As Range
Dim rCell As Range
Dim tCell As Range
Set rInt = Intersect(Target, Range("E:E"))
If Not rInt Is Nothing Then
For Each rCell In rInt
Set tCell = rCell.Offset(0, -1)
If IsEmpty(tCell) Then
tCell = Now
tCell.NumberFormat = "dd/mm/yyyy"
End If
Next
End If
End Sub
Last edited: