Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Combo box should trigger another combo box

Hi ,

Can tell me the way how could i make a combo box change according to the
selection of another combox values.

for example : if a combo box contains values such as "days of a week(ie
monday,tuesday,wednesday..... )" if one selects monday the other combo box
should display the values specified for monday(like places i need to go on
monday).

please help me out!!!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,344
Default Combo box should trigger another combo box

Hi,

Suppose the two combo boxes are in the spreadsheet? As a test, to
illustrate the technique: I will use the Data, Validation command to
demonstrate this idea. If you are using another combo box then let us know
whether it is a Form or Control Box control:

Range A1:A2
US
Canada

In range B1:B2
New York
San Francisco

Select B1:B2 and type US into the Name Box (the far left side of the Formula
Bar, where cell addresses appear) and press Enter. The name must be spelled
the same as you enter in A1.

In range C1:C2
Quebec
Toronto

Select C1:C2 and type Canada into the Name Box (the far left side of the
Formula Bar, where cell addresses appear) and press Enter. You must press
Enter!

Move to a cell where you will have your first a drop down list, say E1.
Choose Data, Validation, from the Allows box choose List, in the source box
enter =A1:B1 and press OK. Now you have a drop down list with two choices in
cell E1, the arrow shows when you click in the cell.

Move to the cell where you want your list to depend on the result the entry
in E1. Say H1, and choose Data, Validation, and from the Allows box choose
List, in the source box enter =INDIRECT(E1). When you click Ok you may get
an error message, ignore it.

Now test everything. Open the list in E1 and pick one of the two entries.
Move to H1 and open the drop down....

If this helps, please click the Yes button.

--
Thanks,
Shane Devenshire


"karthik" wrote:

Hi ,

Can tell me the way how could i make a combo box change according to the
selection of another combox values.

for example : if a combo box contains values such as "days of a week(ie
monday,tuesday,wednesday..... )" if one selects monday the other combo box
should display the values specified for monday(like places i need to go on
monday).

please help me out!!!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Combo box should trigger another combo box


Hi,

Thank you for the post, it was helpful.

I have another request, suppose if the values have spaces (like instead of
"US" if its "C & C++ Programming"/ "Java Programming" and in the other combo
box if i plan to display the "Corresponding Authors" )
when i tried to name the selected field as "C & C++ Programming", it showed
an error like Special Characters not allowed.

what can i do if this is the case..???

Please Reply...


"ShaneDevenshire" wrote:

Hi,

Suppose the two combo boxes are in the spreadsheet? As a test, to
illustrate the technique: I will use the Data, Validation command to
demonstrate this idea. If you are using another combo box then let us know
whether it is a Form or Control Box control:

Range A1:A2
US
Canada

In range B1:B2
New York
San Francisco

Select B1:B2 and type US into the Name Box (the far left side of the Formula
Bar, where cell addresses appear) and press Enter. The name must be spelled
the same as you enter in A1.

In range C1:C2
Quebec
Toronto

Select C1:C2 and type Canada into the Name Box (the far left side of the
Formula Bar, where cell addresses appear) and press Enter. You must press
Enter!

Move to a cell where you will have your first a drop down list, say E1.
Choose Data, Validation, from the Allows box choose List, in the source box
enter =A1:B1 and press OK. Now you have a drop down list with two choices in
cell E1, the arrow shows when you click in the cell.

Move to the cell where you want your list to depend on the result the entry
in E1. Say H1, and choose Data, Validation, and from the Allows box choose
List, in the source box enter =INDIRECT(E1). When you click Ok you may get
an error message, ignore it.

Now test everything. Open the list in E1 and pick one of the two entries.
Move to H1 and open the drop down....

If this helps, please click the Yes button.

--
Thanks,
Shane Devenshire


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
Combo Box Values Not Sticking & Mult/ Combo Boxes in a WorkSheet questor Excel Programming 0 September 15th 08 01:38 AM
Combo Box Trigger for Macro using Worksheet_SelectionChange Frank Hayes Excel Programming 2 March 18th 07 06:52 PM
Filtered list for Combo Box ListFillRange - Nested Combo Boxes DoctorG Excel Programming 3 February 23rd 06 12:15 PM
"Combo Box - getting control combo box to stick in place in worksh ajr Excel Discussion (Misc queries) 1 February 16th 05 02:05 AM
"Combo Box - getting control combo box to stick in place in worksh ajr Excel Discussion (Misc queries) 0 February 15th 05 07:45 PM


All times are GMT +1. The time now is 09:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"