![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 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 |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
If you could use Data Validation, I posted a Tip of the Day that explains this.
If you need to do this using "real" comboboxes, then, post again. Tip of the Day for: Saturday, January 26, 2002 |
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2002
Posts: 4
|
if I use the data validation method, how do I lay out the table of data??
I would prefer to use "real" combo boxes.Would you be able to tell me how to do this method as well? thank you |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
Quote:
As Juan suggested, it's more convenient to use Lists thru data validation. The method is as follows: Enter in some column what follows: {"USA";"FRANCE"}[ That's, enter USA in a cell, then FRANCE in the next cell down ] Select these cells, go to the Name Box on the Formula Bar, and type COUNTRIES followed by enter. Enter in a column next to COUNTRIES: {"New York";"Pittsburgh";"Los Angeles";"Boston"} Name this range of cells USA via the Name Box as described above. Enter in a column next to USA: {"Paris";"Nice";"Toulon"} Name this range FRANCE. Just to see how this works, activate A1 in some worksheet in the same workbook; activate Data|Validation; choose 'List' for 'Allow'; enter as 'Source' the formula: =COUNTRIES click OK; activate another cell in the same worksheet, say, C1; activate Data|Validation; choose 'List' for 'Allow'; enter as 'Source' the formula: =INDIRECT(A1) click OK. Now you have two lists of which the 2nd depends on the selection from the 1st. |
|
|
|
|
|
|
#5 |
|
Guest
Posts: n/a
|
cheers mate for the help. I've got that working. Is there any way in which i can get the drop down arrows to stay there permanently? because i need a visible menu option.
thanks again |
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
Quote:
It isn't much, but you can color the cells, put borders around them, etc. to make them stand out. |
|
|
|
|
|
|
#7 |
|
Guest
Posts: n/a
|
thanks for all your help!!!!! much appreciated!!
|
|
|
|
#8 |
|
Board Regular
Join Date: Jun 2002
Posts: 207
|
Man, that INDIRECT is ssssssweet!
|
|
|
|
|
|
#9 |
|
Board Regular
Join Date: Feb 2002
Posts: 61
|
The indirect way is excellent..but now a poser say i choose from the first column usa and then a value )say 20) from the second..in the second worksheet I want the value to be subtracted from USA which is also in the second sheet..how??? col
|
|
|
|
|
|
#10 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|