MarcRowing
New Member
- Joined
- Jan 16, 2019
- Messages
- 2
Hi everyone,
I am struggling to write a loop which needs to do the following:
Check if Cells(J,1) = Cells(J+1,1) and Cells(J,3) = Cells(J+1,4) when >0 or Cells(J+1,4) = Cells(J,3) when >0
then delete both the row J and J+1
I have managed to create a loop that check if Cells are equal (but also when both are = 0) and do not find how to delete them.
Could you please help me
Thank you
I am struggling to write a loop which needs to do the following:
Check if Cells(J,1) = Cells(J+1,1) and Cells(J,3) = Cells(J+1,4) when >0 or Cells(J+1,4) = Cells(J,3) when >0
then delete both the row J and J+1
I have managed to create a loop that check if Cells are equal (but also when both are = 0) and do not find how to delete them.
Could you please help me
Thank you