PDA

View Full Version : A search code with three possible results



mselmy
10-22-2022, 04:08 AM
I need help with a search code for the attached file

arnelgp
10-22-2022, 08:56 AM
check and test

mselmy
10-24-2022, 11:25 PM
check and test

Thank you very much. Excellent work, but the second case does not work. All dates in the database are during July 2022. Any date should be in May 2022. The second result should be

If Ok Then
With Sheet2.Range("A18")
.Value = ID
.Offset(, 1) = 0
.Offset(, 2) = "date is old"
End With
End If

snb
10-25-2022, 01:19 AM
Well, that's a nice assignment.

mselmy
10-26-2022, 08:00 AM
I am waiting

arnelgp
10-27-2022, 01:24 AM
stop waiting and start testing