Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Autofilter on a combo box

Does anyone know how to get an auto filter to be based on a choice in
a combo box?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default Autofilter on a combo box

have the combobox call the following when it changes value

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

change the ranges and field appropriately



"Scott" wrote in message
...
Does anyone know how to get an auto filter to be based on a choice in
a combo box?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Autofilter on a combo box

Thanks! I set my combobox change command to call this function and it
works out well.

On Jul 22, 1:03*pm, "Patrick Molloy"
wrote:
have the combobox call the following when it changes value

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

change the ranges and field appropriately

"Scott" wrote in message

...



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
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
excel 2007 autofilter change to 2003 autofilter functionality? jonnybrovo815 Excel Discussion (Misc queries) 1 April 19th 10 10:05 PM
2007 excel autofilter back to 2003 autofilter? jonnybrovo815 Excel Discussion (Misc queries) 3 April 19th 10 08:11 PM
2007 excel autofilter change back to 2003 autofilter? jonnybrovo815 Excel Discussion (Misc queries) 1 April 19th 10 05:53 PM
autofilter based upon combo box Herman Excel Programming 2 August 18th 06 07:17 AM
Link Combo Box to Autofilter argument JohnWRS Excel Programming 0 April 21st 04 06:12 PM


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

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

About Us

"It's about Microsoft Excel"