Hi,
I am trying to extract unique records from a column of data using advance filter. Here is my code:
LR = shSource.Cells(rows.Count, "F").End(xlUp).Row 'Last row of column F
shSource.Range("F12:F").AdvancedFilter Action:=xlFilterCopy, _
CopyToRange:=shSetup.Range("G2"), Unique:=True
The code works except for one thing. The first record in the source column is included twice in the filtered result. Can anyone explain why this happens? Thank you.
Also, I would like the unique records to be sorted in ascending /descending order. Can this be done at the sale time as the filtering process - kind of one step? Please let me know. Thank you.
Bookmarks