I am receiving the end if without block if compile error in the below chunk of code. The initial IF clause is definitely not missing, so I'm guessing the nested IF is "separated" from the End If that is returning the error. What part of the code between the outer IF-End If is preventing the recognition of this statement?
Thanks!
Code:
If Cells(bb, 4).value < Cells(dd, 4).value - NumObs Or Cells(bb, 4).value > Cells(dd, 4).value + NumObs Then
If Cells(bb, 3) <= Cells(dd, 3) Then Rows(dd).EntireRow.Delete
Else: Rows(bb).EntireRow.Delete
End If
End If
Thanks!