I'm using the AdvancedFilter method to filter a previously named range of data for unique entries which I then copy to a different part of the spreadsheet.
This works fine except that the first data entry in the original range is always repeated in the subsequent (supposedly unique) list.
I enclose a fragment of the code -
Worksheets("Sheet1"
.Range("StatSelect"
.Select
With Selection
.AdvancedFilter Action:=xlFilterCopy, CopyToRange:=.Cells(40, 10), Unique:=True
End With
No header information is included in the original range selection.
Is the glitch in my code or the method?
Any ideas?
regards
Steve
This works fine except that the first data entry in the original range is always repeated in the subsequent (supposedly unique) list.
I enclose a fragment of the code -
Worksheets("Sheet1"
With Selection
.AdvancedFilter Action:=xlFilterCopy, CopyToRange:=.Cells(40, 10), Unique:=True
End With
No header information is included in the original range selection.
Is the glitch in my code or the method?
Any ideas?
regards
Steve