I'm looking for a quick way to delete duplicates in a specific column but only in a filtered range. So, basically I would like it only delete visible duplicate values, but leave the rest that is "unfiltered and hidden".
I have this piece of code and have no idea how to alter it to do so:
ActiveSheet.Range("A:ZZ").RemoveDuplicates Columns:=Array(3), Header:=xlYes
Could you please help? Is there any easy way to edit the existing code to do this?
*For example:
- Column A= Continent
- Column B= Country
- Column C= City
If I filter the country by India (col B) I see various cities repeated many times (col C). I would like to delete duplicates and see only one of each city. However, I don't want the duplicates to be deleted for the other countries.*