Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
On Error GoTo Oops
Application.EnableEvents = False
If Not Intersect(Target, Range("A5:A3000")) Is Nothing Then
Cells(Target.Row, "C").Value = Date
Columns("C").AutoFit
End If
If Target.Column = 7 Then
Select Case Target.Value
Case "Hold"
Cells(Target.Row, "H").Value = Now
Cells(Target.Row, "H").NumberFormat = "MM/DD/YY"
Cells(Target.Row, "I").ClearContents
Case "Off Hold"
Cells(Target.Row, "I").Value = Now
Cells(Target.Row, "I").NumberFormat = "MM/DD/YY"
Cells(Target.Row, "H").ClearContents
End Select
End If
Oops:
Application.EnableEvents = True
End Sub
Please use CODE tags.
Bookmarks