Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 211
Default Macro To Filter As Per List

Any idea for having a table with a specific column be filtered as per a
predefined list, instead of selecting each and every entry in the drop down?

Thanx in advance.
--
Best Regards,

Faraz
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Macro To Filter As Per List

Check out the below link for 'Filter Items in a List'

http://www.contextures.com/xladvfilter02.html


If this post helps click Yes
---------------
Jacob Skaria


"Faraz A. Qureshi" wrote:

Any idea for having a table with a specific column be filtered as per a
predefined list, instead of selecting each and every entry in the drop down?

Thanx in advance.
--
Best Regards,

Faraz

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Macro To Filter As Per List

For a VBA solution try the below example..

Your data in active sheet..Data range is ColA/ColB A1:B10..Filter criteria
range is C1:C3 (with header)

Col A Col B Col C
Header 1 Header 2 Header 1
a 1 a
a 2 b
b 3
a 4
b 5
c 6
d 7
e 8
a 9

Sub Macro2()
Range("A1:B10").AdvancedFilter Action:=xlFilterInPlace, _
CriteriaRange:=Range("C1:C3"), Unique:=False
End Sub


If this post helps click Yes
---------------
Jacob Skaria


"Faraz A. Qureshi" wrote:

Any idea for having a table with a specific column be filtered as per a
predefined list, instead of selecting each and every entry in the drop down?

Thanx in advance.
--
Best Regards,

Faraz

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
List sort - filter macro based on check box brumanchu Excel Discussion (Misc queries) 1 April 27th 09 11:56 PM
filter: how to print filter list options in dropdown box help please Excel Discussion (Misc queries) 2 October 17th 07 01:53 AM
Macro to work list in filter and save (reposted from MPE misc) Rich Excel Programming 4 July 11th 07 07:13 PM
Macro to work list in filter and save Rich Excel Discussion (Misc queries) 1 July 11th 07 11:54 AM
Filter the results of a list based on a previous vlookup against the same list Mizpah Excel Worksheet Functions 2 August 18th 06 10:28 AM


All times are GMT +1. The time now is 08:55 AM.

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"