Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("D2", "D" & Rows.Count)) Is Nothing Then
With Target(1, 7)
.Value = Date
.EntireRow.Interior.ColorIndex = 15
End With
End If
End Sub
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
If Intersect(Target, Range("D1", "D" & Rows.Count)) = "X" Then
With Target(1, 7)
.Value = Date
.EntireRow.Interior.ColorIndex = 15
End With
End If
End Sub
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Value = "X" Then
If Not Intersect(Target, Range("E1", "E100")) Is Nothing Then
Target.Offset(0, 7).Value = Date
End If
End If
End Sub