Macro to run filter on existing table

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a table consisting of a set of records in Excel and i need to show a
subset of these records, based on user input filtering criteria applied on
one of the columns in the table. Would like to know a simple macro (code)
that can achieve this. Any other suggestion to achieve this would also be
helpful.

Thanks.
 
Turn on the macro recorder and apply and autofilter

Data=>Filter=>Autofilter
then select a criteria.

Turn off the macro recorder and modify the code to allow you to apply user
inputted criteria.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top