PC Review


Reply
Thread Tools Rate Thread

Autofilter on a combo box

 
 
Scott
Guest
Posts: n/a
 
      22nd Jul 2009
Does anyone know how to get an auto filter to be based on a choice in
a combo box?
 
Reply With Quote
 
 
 
 
Patrick Molloy
Guest
Posts: n/a
 
      22nd Jul 2009
have the combobox call the following when it changes value

Sub SetFilter()
With Range("A11")
.AutoFilter Field:=1 , Criteria1:=Range("combox linked cell").Value
End With
End Sub

change the ranges and field appropriately



"Scott" <(E-Mail Removed)> wrote in message
news:93f78ef4-2cdd-4a08-93b1-(E-Mail Removed)...
> Does anyone know how to get an auto filter to be based on a choice in
> a combo box?


 
Reply With Quote
 
Scott
Guest
Posts: n/a
 
      22nd Jul 2009
Thanks! I set my combobox change command to call this function and it
works out well.

On Jul 22, 1:03*pm, "Patrick Molloy" <patrick_mol...@hotmail.com>
wrote:
> have the combobox call the following when it changes value
>
> Sub SetFilter()
> * * With Range("A11")
> * * .AutoFilter Field:=1 , Criteria1:=Range("combox linked cell")..Value
> * * End With
> End Sub
>
> change the ranges and field appropriately
>
> "Scott" <brustk...@gmail.com> wrote in message
>
> news:93f78ef4-2cdd-4a08-93b1-(E-Mail Removed)...
>
>
>
> > Does anyone know how to get an auto filter to be based on a choice in
> > a combo box?- Hide quoted text -

>
> - Show quoted text -


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel 2007 autofilter change to 2003 autofilter functionality? jonnybrovo815 Microsoft Excel Misc 1 19th Apr 2010 10:05 PM
2007 excel autofilter change back to 2003 autofilter? jonnybrovo815 Microsoft Excel Misc 1 19th Apr 2010 05:53 PM
autofilter based upon combo box =?Utf-8?B?SGVybWFu?= Microsoft Excel Programming 2 18th Aug 2006 07:17 AM
Link Combo Box to Autofilter argument JohnWRS Microsoft Excel Programming 0 21st Apr 2004 06:12 PM
Autofilter by Combo Box Selection rob m Microsoft Excel Misc 2 27th Oct 2003 03:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:16 AM.