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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

More than 2 criteria on an autofilter

Status
Not open for further replies.

gremlins

Programmer
Jul 20, 2003
20
0
0
GB
How do I filter in vba on more than 2 criteria?

I have a list within a worksheet that populates the first column of cells and can be anything from a single value to 16 values.

I need to filter a seperate worksheet with these values. It currently looks a bit like:

selection.autofilter, criteria1:=worksheet(cellref), operator:=xlor, criteria2:=worksheet(cellref)

but obviously I would want this to go up to a possible 16 references.

It appears though that excel is limited to only 2.

How can I get around this?

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top