Macro to Select Multiple Columns by Columns Specific Headings to Delete Dupes

Solved/Closed
jackied25 Posts 1 Registration date Friday February 28, 2020 Status Member Last seen February 28, 2020 - Feb 28, 2020 at 09:07 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Mar 3, 2020 at 12:17 PM
Hello All,

I have been struggling to find a code that allows me to select multiple columns by name to then delete duplicates in those specific columns. The reason behind this is the workbook i am using will soon be adding columns and i need to specifically reference these exact columns rather than the numerical placement of the columns. If anyone can help that would be great!

2 responses

TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 555
Mar 2, 2020 at 11:50 AM
Hi Jackied,

Not sure what you mean by select column by name? Do you mean by Header name or Column letter or Named range or something else?

And where are those names located for Excel to know which columns need to remove duplicates? Or do you want to be prompted for each column?

Best regards,
Trowa
1