Hi folks,
I am getting a type mismatch on the following line of code:
I have also tried:
I want the If condition to be true if Cells(r, 4).Value + 1 = #VALUE and if Cells(r, 5).Value is not blank.
Thanks in advance!
Jonathan
I am getting a type mismatch on the following line of code:
Code:
If IsError(Cells(r, 4).Value + 1) And Cells(r, 5).Value <> "" Then
I have also tried:
Code:
If IsError(Cells(r, 4).Value + 1) = True And Cells(r, 5).Value <> "" Then
I want the If condition to be true if Cells(r, 4).Value + 1 = #VALUE and if Cells(r, 5).Value is not blank.
Thanks in advance!
Jonathan