Hi,
I am currently trying to find duplicate records in a single worksheet that has over 12,000 records. I have sorted the data so that the duplicates should appear on the next line down. I would like to, if possible, create a macro to cycle through the records line by line and compare the two. If they are the same then change the colour on the duplicate row.
My idea was something like this:
For each row loop
if cell = (cell below) and (next cell) = (next cell below) then change colour
e.g. if B1 = C1 and B2 = C2 then change colour
end loop
I would appreciate any help that you can offer.
Many thanks,
Richard.
I am currently trying to find duplicate records in a single worksheet that has over 12,000 records. I have sorted the data so that the duplicates should appear on the next line down. I would like to, if possible, create a macro to cycle through the records line by line and compare the two. If they are the same then change the colour on the duplicate row.
My idea was something like this:
For each row loop
if cell = (cell below) and (next cell) = (next cell below) then change colour
e.g. if B1 = C1 and B2 = C2 then change colour
end loop
I would appreciate any help that you can offer.
Many thanks,
Richard.