thewoodington
Board Regular
- Joined
- Dec 29, 2011
- Messages
- 100
Hi guys,
I am trying to remove the duplicates from column A, then select the contents on column Y paste that into another sheet. Here I remove duplicates again.
My code will not remove duplicates on the first instance but doesn't remove duplicates on the second instance. I can see the code is different but cannot see why one works and other one doesn't?
Can someone please help?
Thanks
I am trying to remove the duplicates from column A, then select the contents on column Y paste that into another sheet. Here I remove duplicates again.
My code will not remove duplicates on the first instance but doesn't remove duplicates on the second instance. I can see the code is different but cannot see why one works and other one doesn't?
Code:
Sheets("Accepted Apps").Select
ActiveSheet.Range("$A$1:$AH$1000000").RemoveDuplicates Columns:=1, Header:= _
xlYes
Columns("Y:Y").Select
Selection.Copy
Sheets("Trends").Select
Range("A1").Activate
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveSheet.Range("A:A").RemoveDuplicates Columns:=1, Header:=xlNo
Can someone please help?
Thanks