Hi Everyone!
I am trying to filter unique entries from one worksheet to another dynamically. I have written a few VBA macros to do this but I have had no luck.
I've tried things like:
Dim ws1 As Worksheet
Dim ws2 As Worksheet
Set ws1 = Worksheets("Sheet1")
Set ws2 = Worksheets("Sheet2")
ws1.Range("S7", Range("S7").End(xlDown)).AdvancedFilter _
Action:=xlFilterCopy, _
CopyToRange:=ws2.Range("B6" & Range("B65536")).End(xlUp)(3), _
Unique:=True
End Sub
ws1.Range one has the numbers 1,2,3,1,2,3
and my macro returns 1,2,3,1
and I want it to return only the unique entries.
Is it reading the first entry ("1") as the title/criteria and therefore including it?
Any help is much appreciated.
Thanks!
Carol
Bookmarks