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?
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