In the following I am trying to delete an entire row within a macro if the next row equal the content of the previous row:
Do While Range(“A2”).Offset(num, 0).EntireRow = Range(“A2”).Offset(num + 1, 0).EntireRow
Range(“A2”).Offset(num + 1, 0).EntireRow.Delete
Loop
However, when runing it I get an error message (run-time error ’13’ – type mismatch) – what am I doing wrong here? I think in my do while statment I can’t have the word “EntireRow” by itself without a proceeding argument. How do I write this part of the macro to do what I want it to do?
Thanks
LaMont