简体   繁体   中英

Remove cell duplicates in Excel using VBA

I am working with huge amount of data. For example I have 2 columns with data (10k each) and I need to find and remove the duplicates in one of the columns. Highlighting the duplicates is easy but I would like to find a way (formula or VBA) that performs that for me in Excel.

You won't find a faster method than the VBA version of Data ► Data Tools ► Remove Duplicates.

ActiveSheet.Range("E:E").RemoveDuplicates Columns:=1, Header:=xlYes

Post back if you have an earlier version of Excel.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM