LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Filter using combo box


Place a combo-box in the column and assign the source to th
ListFillRange. Then put the following code in it.


Private Sub ComboBox1_Change()

Cells.EntireRow.Hidden = False
Set rng = Range(Range("a2"), Range("a2").End(xlDown))

For Each cl In rng

If Trim(cl.Value) < Trim(ComboBox1.Value) Then
cl.EntireRow.Hidden = True
End If

Next

End Sub


- Manges

--
mangesh_yada
-----------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...fo&userid=1047
View this thread: http://www.excelforum.com/showthread.php?threadid=31925

 
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
Help please - List/Filter/Combo Box? Getting Fired Excel Discussion (Misc queries) 0 January 23rd 08 12:32 AM
Filter and copy to combo box saman110 via OfficeKB.com Excel Discussion (Misc queries) 1 September 17th 07 02:42 AM
Help with VBA, Combo Box and Filter casey Excel Discussion (Misc queries) 0 December 11th 06 11:34 PM
Combo box to filter gavmer[_95_] Excel Programming 0 October 13th 04 02:19 AM
Combo box to filter gavmer[_94_] Excel Programming 0 October 12th 04 12:38 AM


All times are GMT +1. The time now is 10:12 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"