Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple criteria in autofilter BASFMark Excel Worksheet Functions 1 December 11th 08 06:38 PM
Autofilter - Supply Criteria JMay Excel Discussion (Misc queries) 2 January 2nd 07 01:29 PM
Displaying autofilter criteria [email protected] Excel Worksheet Functions 0 February 25th 05 09:41 PM
Variable in AutoFilter criteria morry[_28_] Excel Programming 1 June 30th 04 04:48 AM
VBA Autofilter Criteria Brandon[_5_] Excel Programming 1 November 7th 03 12:40 PM


All times are GMT +1. The time now is 05:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"