Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default How do I create dependent combo-boxes?

I need to create two combo boxes on a worksheet. The first is a list of all
the states, the second a list of all major cities in the state selected from
the first combo box. The user wants this done without having to switch to a
userform. I would like to do this using the ActiveX controls from the Control
Toolbox.
I have created two tables (named ranges) on a different worksheet:
States - which consists of the 2 character state code
Cities - which consists of two columns - the state code (characters) and the
name of a city.
The Cities table can have multiple entries for each state.
I can get the first combo box to display correctly by setting the
ListFillRange property to States but how do I get the second combo box to
display the correct cities?
If anyone has an answer or can point me in the right direction, I would be
very grateful.
Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default How do I create dependent combo-boxes?

Hi

You could achieve this with Data Validation and dependent drop down
lists.
Take a look at Debra Dalgleish's site for examples of how to achieve
this
http://www.contextures.com/xlDataVal13.html

--
Regards

Roger Govier


"ExcelDave" wrote in message
...
I need to create two combo boxes on a worksheet. The first is a list of
all
the states, the second a list of all major cities in the state
selected from
the first combo box. The user wants this done without having to
switch to a
userform. I would like to do this using the ActiveX controls from the
Control
Toolbox.
I have created two tables (named ranges) on a different worksheet:
States - which consists of the 2 character state code
Cities - which consists of two columns - the state code (characters)
and the
name of a city.
The Cities table can have multiple entries for each state.
I can get the first combo box to display correctly by setting the
ListFillRange property to States but how do I get the second combo box
to
display the correct cities?
If anyone has an answer or can point me in the right direction, I
would be
very grateful.
Thank you!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default How do I create dependent combo-boxes?

Thanks Roger,

I was hoping I could do this with the ComboBox control as the users I am
creating this for, like to see the combo boxes on the worksheet instead of
having to cursor to the cell to see the dropdown arrow.

Regards,
Dave

"Roger Govier" wrote:

Hi

You could achieve this with Data Validation and dependent drop down
lists.
Take a look at Debra Dalgleish's site for examples of how to achieve
this
http://www.contextures.com/xlDataVal13.html

--
Regards

Roger Govier


"ExcelDave" wrote in message
...
I need to create two combo boxes on a worksheet. The first is a list of
all
the states, the second a list of all major cities in the state
selected from
the first combo box. The user wants this done without having to
switch to a
userform. I would like to do this using the ActiveX controls from the
Control
Toolbox.
I have created two tables (named ranges) on a different worksheet:
States - which consists of the 2 character state code
Cities - which consists of two columns - the state code (characters)
and the
name of a city.
The Cities table can have multiple entries for each state.
I can get the first combo box to display correctly by setting the
ListFillRange property to States but how do I get the second combo box
to
display the correct cities?
If anyone has an answer or can point me in the right direction, I
would be
very grateful.
Thank you!




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default How do I create dependent combo-boxes?

Hi Dave

Debra also has some examples and downloadable files on her site
utilising Combo boxes as well
http://www.contextures.com/xlDataVal11.html

You can always turn off the dropdown from the Data validation cells, so
that only the combo dropdown is visible.

--
Regards

Roger Govier


"ExcelDave" wrote in message
...
Thanks Roger,

I was hoping I could do this with the ComboBox control as the users I
am
creating this for, like to see the combo boxes on the worksheet
instead of
having to cursor to the cell to see the dropdown arrow.

Regards,
Dave

"Roger Govier" wrote:

Hi

You could achieve this with Data Validation and dependent drop down
lists.
Take a look at Debra Dalgleish's site for examples of how to achieve
this
http://www.contextures.com/xlDataVal13.html

--
Regards

Roger Govier


"ExcelDave" wrote in message
...
I need to create two combo boxes on a worksheet. The first is a list
of
all
the states, the second a list of all major cities in the state
selected from
the first combo box. The user wants this done without having to
switch to a
userform. I would like to do this using the ActiveX controls from
the
Control
Toolbox.
I have created two tables (named ranges) on a different worksheet:
States - which consists of the 2 character state code
Cities - which consists of two columns - the state code
(characters)
and the
name of a city.
The Cities table can have multiple entries for each state.
I can get the first combo box to display correctly by setting the
ListFillRange property to States but how do I get the second combo
box
to
display the correct cities?
If anyone has an answer or can point me in the right direction, I
would be
very grateful.
Thank you!






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
How do I create 3 list boxes dependent on prior selections GILBERT Excel Discussion (Misc queries) 3 April 25th 07 11:56 PM
Joined Combo Boxes Squeaky Excel Discussion (Misc queries) 0 May 2nd 06 03:20 PM
Combo boxes and formulas TC Excel Worksheet Functions 4 April 12th 06 11:22 PM
Create a combo chart with two of the same chart types Mark Parent Charts and Charting in Excel 2 October 14th 05 01:28 AM
How do I autofill combo boxes with their destination cell? Defoes Right Boot Excel Worksheet Functions 3 January 10th 05 12:49 PM


All times are GMT +1. The time now is 12:35 AM.

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"