I have this code that inputs today's date into a cell when another cell is marked "Complete". It basically says if a cell in column D is changed to "Complete", put today's date into column P.
I need to add another criteria into the if statement. I want the if statement to say "if column D is marked complete AND column "N" marked "No", put today's date in column P.
Thank you in advance for your help!
Private Sub Worksheet_Change(ByVal Target As Range)
Dim c As Range
If Not Intersect(Columns("D"), Target) Is Nothing Then
Application.EnableEvents = False
For Each c In Intersect(Columns("D"), Target).Cells
If (c.Value) = "Complete" Then
Cells(c.Row, "P").Value = Date
Else
If IsEmpty(c) Then Cells(c.Row, "P").Value = ""
End If
Next c
Application.EnableEvents = True
End If
End Sub