ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   AutoFilter Criteria VBA (https://www.excelbanter.com/excel-programming/307566-autofilter-criteria-vba.html)

EstherJ

AutoFilter Criteria VBA
 
My macro for filtering and copying data into seperate worksheets will only
work when each criteria is specified. I want it to work its way through the
list on the drop down as the master spreadhsheet regulary has more items
added to it.

Thank you,

Esther

Ron de Bruin

AutoFilter Criteria VBA
 
Hi EstherJ

Try the last macro on this page
http://www.rondebruin.nl/copy5.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl


"EstherJ" wrote in message ...
My macro for filtering and copying data into seperate worksheets will only
work when each criteria is specified. I want it to work its way through the
list on the drop down as the master spreadhsheet regulary has more items
added to it.

Thank you,

Esther




Tom Ogilvy

AutoFilter Criteria VBA
 
You can get a list of unique elements by using the Advanced filter, checking
the uniques checkbox in the first dialog and copy the list of uniques to
another location on your worksheet. You can then work down this list,
setting the criteria in your autofilter. The list in the dropdown of the
autofilter is not directly accessible programmatically.

--
Regards,
Tom Ogilvy

"EstherJ" wrote in message
...
My macro for filtering and copying data into seperate worksheets will only
work when each criteria is specified. I want it to work its way through

the
list on the drop down as the master spreadhsheet regulary has more items
added to it.

Thank you,

Esther





All times are GMT +1. The time now is 11:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com