Removing items on Sheet1 that are common to Sheet2

E

email4kh

Sheet1 and Sheet2 have identical data on some rows. In Excel 2003, how do I
find and remove all the rows on Sheet1 that are also on Sheet2?
 
D

Don Guillett

?? SAME row on each??
sub delduprows()
dim i as long
for i = cells(rows.count,"a").end(xlup).row to 2 step -1
if cells(i,"a")=sheets("sheet2").cell(i,"a") then rows(i).delete
next i
end sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top