Link to home
Create AccountLog in
Avatar of K B
K BFlag for United States of America

asked on

Excel Macro: Delete a Row if Column A and B match (in that Row)

Header           A              B
Row1             Joe          Frank
Row2             Bob         Bob
Row3             Bill          Owen
Row4             Kelly       Kelly


The macro would delete Rows #2  and  #4

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
I think Bill's line 5 should be

 If Cells(i, "A").Value = Cells(i, "B").Value Then