ListBox Column Filter

jstevens
GoldLounger
Posts: 2628
Joined: 26 Jan 2010, 16:31
Location: Southern California

ListBox Column Filter

Post by jstevens »

Is it possible to apply a filter to a ListBox column?
Regards,
John

User avatar
HansV
Administrator
Posts: 78412
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: ListBox Column Filter

Post by HansV »

Please explain in more detail what you want to do.
Best wishes,
Hans

jstevens
GoldLounger
Posts: 2628
Joined: 26 Jan 2010, 16:31
Location: Southern California

Re: ListBox Column Filter

Post by jstevens »

I have a listbox with a number of columns, one (Status) which contains the text "favorable or unfavorable". I would like to filter on the Status column to show all favorable, unfavorable records or both.
Regards,
John

User avatar
HansV
Administrator
Posts: 78412
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: ListBox Column Filter

Post by HansV »

If the RowSource of the combo box is a range on a worksheet, you'd have to extract the filtered records to a separate range, and set that as RowSource.
Alternatively, populate the list box using AddItem. I have attached an example of that approach.

Testfile.xlsm
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

jstevens
GoldLounger
Posts: 2628
Joined: 26 Jan 2010, 16:31
Location: Southern California

Re: ListBox Column Filter

Post by jstevens »

Hans,

Very nice.

Thank you.
Regards,
John

snb
4StarLounger
Posts: 574
Joined: 14 Nov 2012, 16:06

Re: ListBox Column Filter

Post by snb »

Example
You do not have the required permissions to view the files attached to this post.