cascading combo boxes...???

Gurps

New Member
Joined
Feb 16, 2002
Messages
4
is there any way in which I can get the selection from one combo box to influence the second?? In other words, The second combo box is dependant on the first.
I am using Excel XP.

any help would be appreciated.
cheers
 
Great Stuff!
I'd like to push it forward:
After you choose a country (USA) and a city, you may want then to choose another country in A1. The only thing is that the city from USA is still in the other cell.
Is there any (dynamic?) macro in order to delete the already choosen city when you change the selected country.
Regards
Emmanuel
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Is there a way to get this method to work with non-adjacent named ranges, like from an existing database?
 
Upvote 0
mgana said:
Is there a way to get this method to work with non-adjacent named ranges, like from an existing database?

as far as i know, named ranges will only work within it's own workbook. they can work cross-sheets :) which is very nice. maybe copying one sheet to another workbook and accessing from there? many possibilities. :beerchug:
 
Upvote 0
'Is there any way in which i can get the drop down arrows to stay there permanently? because i need a visible menu option."

is it possible to tell me how to do it in VBA?

Thanks!!
Cathy
 
Upvote 0
Gurps,

You could do this with “real” combo boxes.

See the exhibit:
Your data is in sheet2, columns G, H and I.
It is assumed that the max number of rows for the data is 20 (column H).
ChangingCombo2.xls
ABCDEFGHIJK
1CodeCategoryDataCode
2101AA500Category
339102BA501Data
4103CA502
52$I$2:$I$20104DA503
6105EA504
7106FA505
8107GA506
9108HA507
10109I
11110J
12111K
13112L
14M
15N
16Namedranges:O
17Master=INDIRECT(Sheet2!$D$5)P
18MyData=Sheet2!$K$1:$K$3Q
19R
20S
21
Sheet2


Step 1
In column K, list your data headings and name this list as “myData”.

Step 2
D3: put the formula -
=$C$3+6

From the Forms menu, create a Combo box that covers cells C3:D3.
The input range is “MyData” (no quotes)
Cell link is $C$3.

By covering cells C3:D3 with the Combo Box, you are hiding the formula in D3 and the link cell in C3.

Step 3
D5: put the formula -
=(ADDRESS(2,D3) &":"&ADDRESS(20,D3))

Note that the formula in D5 is linked to the formula in D3 (step 2 above).

Step 4

From the Insert menu | Name | Define, create a named range called “Master” that refers to “=INDIRECT(Sheet2!$D$5)” (no quotes).

Step 5

From the Forms menu, create another Combo box that covers cells C5:D5.
Input range is “Master” (no quotes)
Cell link range is $C$5.

Again, by using the second combo box to cover cells C5:D5, you are hiding the link cell in C5 and the formula in D5.

That’s it.

Access the first combo box and make a selection. The second combo box will reflect your choice from the first combo box.

HTH

Mike
 
Upvote 0
Going back to the example give by Aladin at the beginning of this post…..

What if I have three lists? The combination of the first 2 lists will restrict the data that I am able to select in the third list?

I have 12 items in the first list, 26 items in the second list and about 250 items in the 3rd list.

Thanks,
Daniel
 
Upvote 0
djd79 said:
Going back to the example give by Aladin at the beginning of this post…..

What if I have three lists? The combination of the first 2 lists will restrict the data that I am able to select in the third list?

I have 12 items in the first list, 26 items in the second list and about 250 items in the 3rd list.

Thanks,
Daniel

Can you give a sized down set that shows the interdependence you're looking for?
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top