?
Solved

Multiple auto filters? Excel VBA script

Posted on 2011-03-24
5
Medium Priority
?
431 Views
Last Modified: 2012-05-11
I have a list like whats given in the example.

I need to be able to specify what car types i want (multiple) and return a list with all those car types.

I figure i need to auto filter this list multiple times and have that output to a list on the car check sheet.

Sanjan
multipleFilterExample.xls
0
Comment
Question by:sanjangeorge
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 33

Expert Comment

by:Rob Henson
ID: 35211032
Sounds like you need to use the Advanced Filter option rather than Auto filter. The result of an advanced filter can be extracted from the data set and placed elsewhere. If done manually the criteria and the result have to be on the same sheet as the source data, but if done via a macro they can be on separate sheets.

I will work on an example for you.

Cheers
Rob H
0
 
LVL 33

Accepted Solution

by:
Rob Henson earned 2000 total points
ID: 35211146
See attacheed.

Take a look at Check Sheet first and you will see it is blank.

Goto criteria sheet I have added and amend the types if so required. Click the Apply Filter button. Extract is now on Check sheet.

Any further help let me know.  multipleFilterExample.xls
0
 

Author Comment

by:sanjangeorge
ID: 35217296
your example works well but i haven't been able to implement it in my sheet.

here are the differences between the example and the sheet i'm actually working with.
The criteria range is dynamic and i have a few lines determining how long it is. it is also in column N
The data being filtered is on its own sheet and the filter applies to  column E (there is data in A-G)
The copied table will be on the same sheet as the criteria range but in adjacent columns (R-X)


Sanjan
0
 

Author Comment

by:sanjangeorge
ID: 35217674
also i'm filtering using strings
0
 
LVL 33

Assisted Solution

by:Rob Henson
Rob Henson earned 2000 total points
ID: 35223023
I will adjust it for you after the weekend.

Cheers
Rob H
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question