Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filtered Data Listbox

Status
Not open for further replies.

bob3940

Programmer
Dec 21, 2004
13
US
I have about 300 items in several columns, I want to choose all of the items in the list that meet a criteria and display those in a listbox. for example my spreadsheet has the following info.
Code:
   A         b
1  Carrot    Vegetable
2  Orange    Fruit
3  Spinach   Vegetable
4  Apple     Fruit
5  Banana    Fruit

I apply a filter to limit the rows displayed to be only Fruit so now my spreadsheet looks like this:

Code:
   A         b
2  Orange    Fruit
4  Apple     Fruit
5  Banana    Fruit
If I want to display this info in a listbox on my form I would normally just set the listbox.rowsource="Sheet1!A1:B5" but this puts all of the items fruit and vegetables in the listbox. (which makes sense because the filter only hides the rows).

Is there an easy way to have it use only the filtered data?

Thanks for any help,

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top