View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Whit Whit is offline
external usenet poster
 
Posts: 13
Default AdvancedFilter problem

I am trying to get a unique list of items using an the advancedfilter method
but it keeps pasting the data to the wrong sheet. I cannot see how this is
happening as i thought that the paste range had to be on the same sheet?


ActiveSheet.Range("B1:B" & ActiveSheet.UsedRange.Rows.Count).AdvancedFilter _
Action:=xlFilterCopy, CopyToRange:=Range("M1"), Unique:=True

Cheers

Whit