Deleting Duplicate Cells

schelber

Board Regular
Joined
Oct 22, 2005
Messages
172
Hello, I have a question for a workbook I have which webqueries into separate worksheets.

Once the query is done I am looking for a macro that would , when run, look for duplicate cell entries in every row cell of column "A" and if found delete the entire row of either of the duplicates , but not all.

There are roughly 300 row entries in column "A" and the dups are usually adjacent to each other if that matters.

Sometimes a triplicate can be found also so I am trying to figure out something all encompassing.

I have 15 worksheets that have the exact same kind of data queried into them....each worksheet is named ( Bill, Bob,Sue etc.....) and would like for the macro to do this for each worksheet in the book.

The workbook's name is "Training"

Any help would be appreciated with respect to the VBA.

Regards, Rich
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,136,697
Messages
5,677,270
Members
419,683
Latest member
MrVBAConfused

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top