Quick one! I want to have Excel VBA check to see if there exists information in two locations, and if so, do [foo], otherwise, skip it.
Here's what I've done so far--to give you an idea:
If Not Sheets("DATA").Range("O1") Is Nothing And Not Sheets("DATA").Range("P1") Is Nothing Then
If Sheets("DATA").Range("O1") <> Sheets("DATA").Range("P1") Then
Sheets("MAIN").Range("A19") = "Date/Time Not Aligned Mac/Windows Reg."
Else: Resume Next
End If
Else: Resume Next
End If
Basically, if O1 AND P1 exist, compare them. Otherwise, resume next. In nothing speak, it's more like If Not O1 is Nothing AND If Not P1 is Nothing, then [foo]. Of course, I can't have the two If's.
Thanks in advance...



