Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with Advanced Filter

Status
Not open for further replies.

mms180

IS-IT--Management
Jan 14, 2003
13
US
Please if anyone can help me...

I am using Advanced Filter code to display a set of unique values from a large column of data

here is my code to advanced filter

Sheets("Data").Columns("D:D").AdvancedFilter Action:=xlFilterCopy, _
CopyToRange:=Range("B9"), Unique:=True

(Action is on the first line as well)

when I try to execute the code, a compile error appears, Range is highlighted and the error is Expected Array...

if anyone can help me solve this problem it would be very helpful...

I ran this exact same code on another project and it worked fine, so I checked the reference libraries and that doesn't appear to be the problem....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top