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

hello peeps.. i will like to make use of a combo box to filter out 2
columns on my spreadsheet. Users can either filter column A or B.
however, i'm at loss when it comes to displaying the filter results.
The results should display the entire row. Any help? thanks =)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Filter using combo box


thanks! just wanted to try using combo box

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

  #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

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
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 06:53 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"