Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 49956

Remove Duplicate from Selected range

$
0
0
Hi,

I have a script which runs and currently finishes by highlighting a specific range. I would now like by VB code to remove duplicates from this range only. (As the specific range may change on a daily basis).

Below is the code i have tried to use but not sure why it wont work?

Code:

ActiveSheet.UsedRange.RemoveDuplicates Columns:=Array(1, 2, 3, 4), _
        Header:=xlNo


Viewing all articles
Browse latest Browse all 49956

Trending Articles