Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Need Help Please-Filtering

Hi all,

I am creating a bunch of combo boxes which I would like them to work in the
same way as a filter in excel.

I have a sheet with a bunch of headings say "state", "restaurants" and "food
offered".

Each state has a number of restaurants that can be common i.e. wimpy,
BigMac, King.

So I want to put a combobox that when I select a "State" it will filter all
the restaurants in that state and only shows those restaurants in the second
combobox and then when I choose the restaurant in the specific state it will
show me the various foods available in that restaurant in the next combo
box.

Thank you for anybodies help in advance.......

Really stuck here!!!

Pantelis


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Need Help Please-Filtering

there is no magic built in support for this. You would have to write code
to do all this

I would put my data on a worksheet as a database and use the Autofilter to
do the filtering (as the user makes a selection, set the criteria in the
autofilter for that column) - then populate the next box by looping through
the visible cells and using additem.

--
Regards,
Tom Ogilvy

Pantelis wrote in message
...
Hi all,

I am creating a bunch of combo boxes which I would like them to work in

the
same way as a filter in excel.

I have a sheet with a bunch of headings say "state", "restaurants" and

"food
offered".

Each state has a number of restaurants that can be common i.e. wimpy,
BigMac, King.

So I want to put a combobox that when I select a "State" it will filter

all
the restaurants in that state and only shows those restaurants in the

second
combobox and then when I choose the restaurant in the specific state it

will
show me the various foods available in that restaurant in the next combo
box.

Thank you for anybodies help in advance.......

Really stuck here!!!

Pantelis




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Need Help Please-Filtering

of course, 50 states x 25 restaurants x 25 items = 31250 rows as a level of
magnitude check. Unless this is some toy problem for a school assignment or
something, Excel may not be the medium where you want to store your data.

--
Regards,
Tom Ogilvy

Tom Ogilvy wrote in message
...
there is no magic built in support for this. You would have to write code
to do all this

I would put my data on a worksheet as a database and use the Autofilter to
do the filtering (as the user makes a selection, set the criteria in the
autofilter for that column) - then populate the next box by looping

through
the visible cells and using additem.

--
Regards,
Tom Ogilvy

Pantelis wrote in message
...
Hi all,

I am creating a bunch of combo boxes which I would like them to work in

the
same way as a filter in excel.

I have a sheet with a bunch of headings say "state", "restaurants" and

"food
offered".

Each state has a number of restaurants that can be common i.e. wimpy,
BigMac, King.

So I want to put a combobox that when I select a "State" it will filter

all
the restaurants in that state and only shows those restaurants in the

second
combobox and then when I choose the restaurant in the specific state it

will
show me the various foods available in that restaurant in the next combo
box.

Thank you for anybodies help in advance.......

Really stuck here!!!

Pantelis






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
Filtering Paul X Excel Discussion (Misc queries) 1 May 14th 09 11:21 AM
Filtering without filtering [email protected] Excel Discussion (Misc queries) 3 August 27th 08 06:51 PM
filtering halb1961 Excel Discussion (Misc queries) 3 February 26th 08 12:23 AM
Filtering B G Excel Worksheet Functions 1 June 24th 06 12:58 AM
trouble filtering a list. Why isn't column filtering? Pat Excel Worksheet Functions 1 July 18th 05 03:30 PM


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