#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 262
Default Combo boxes

I am looking for a way to have 2 combo boxes on a worksheet, but the values
that Appear in the second combo box depend on the value of the first box.

Is there a way to do this in Excel?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Combo boxes

Yes there is. The method I use is to have a sheet with the values that will
be in the combo boxes. Suppose there are 4 option is combo box 1. When the
user selects a choice from here there is an associated listindex value with
the selection - from 0 to 3. Put the values for combo box 2 into 3
columns - lets say A,B,C & D. It is then possible to get excel to evaluate
the length of the lists (if they are different lengths) and then create a
loop to store these values in an array, using the listindex value as a
column selection value. Then populate the second combo box from the values
in the array. I am assuming that you know how to code these steps - if you
dont then I can help you with it.

"Keith" wrote in message
...
I am looking for a way to have 2 combo boxes on a worksheet, but the values
that Appear in the second combo box depend on the value of the first box.

Is there a way to do this in Excel?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 262
Default Combo boxes

I understand the principle but unfortunatly I am an Access programer not an
Excel one.

"Graham Whitehead" wrote:

Yes there is. The method I use is to have a sheet with the values that will
be in the combo boxes. Suppose there are 4 option is combo box 1. When the
user selects a choice from here there is an associated listindex value with
the selection - from 0 to 3. Put the values for combo box 2 into 3
columns - lets say A,B,C & D. It is then possible to get excel to evaluate
the length of the lists (if they are different lengths) and then create a
loop to store these values in an array, using the listindex value as a
column selection value. Then populate the second combo box from the values
in the array. I am assuming that you know how to code these steps - if you
dont then I can help you with it.

"Keith" wrote in message
...
I am looking for a way to have 2 combo boxes on a worksheet, but the values
that Appear in the second combo box depend on the value of the first box.

Is there a way to do this in Excel?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Combo boxes

No problem, i will knock up a short example then you can adjust the code as
needed - give me 5 mins.

"Keith" wrote in message
...
I understand the principle but unfortunatly I am an Access programer not an
Excel one.

"Graham Whitehead" wrote:

Yes there is. The method I use is to have a sheet with the values that
will
be in the combo boxes. Suppose there are 4 option is combo box 1. When
the
user selects a choice from here there is an associated listindex value
with
the selection - from 0 to 3. Put the values for combo box 2 into 3
columns - lets say A,B,C & D. It is then possible to get excel to
evaluate
the length of the lists (if they are different lengths) and then create a
loop to store these values in an array, using the listindex value as a
column selection value. Then populate the second combo box from the
values
in the array. I am assuming that you know how to code these steps - if
you
dont then I can help you with it.

"Keith" wrote in message
...
I am looking for a way to have 2 combo boxes on a worksheet, but the
values
that Appear in the second combo box depend on the value of the first
box.

Is there a way to do this in Excel?






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Combo boxes

If you attached a file to your post,
a) that is discouraged

b) Keith won't see it since he is posting from the Microsoft Communities.

--
Regards,
Tom Ogilvy


"Graham Whitehead" wrote:

Try this

"Graham Whitehead" wrote in message
...
No problem, i will knock up a short example then you can adjust the code
as
needed - give me 5 mins.

"Keith" wrote in message
...
I understand the principle but unfortunatly I am an Access programer not
an
Excel one.

"Graham Whitehead" wrote:

Yes there is. The method I use is to have a sheet with the values that
will
be in the combo boxes. Suppose there are 4 option is combo box 1. When
the
user selects a choice from here there is an associated listindex value
with
the selection - from 0 to 3. Put the values for combo box 2 into 3
columns - lets say A,B,C & D. It is then possible to get excel to
evaluate
the length of the lists (if they are different lengths) and then create
a
loop to store these values in an array, using the listindex value as a
column selection value. Then populate the second combo box from the
values
in the array. I am assuming that you know how to code these steps - if
you
dont then I can help you with it.

"Keith" wrote in message
...
I am looking for a way to have 2 combo boxes on a worksheet, but the
values
that Appear in the second combo box depend on the value of the first
box.

Is there a way to do this in Excel?








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
Getting Combo boxes to change options based on other Combo boxes. Ancient Wolf New Users to Excel 1 March 27th 09 06:29 PM
Selecting subsets using combo boxes or list boxes CLamar Excel Discussion (Misc queries) 0 June 1st 06 07:43 PM
Questions on combo boxes and list boxes. Marc New Users to Excel 1 March 14th 06 09:40 AM
Filtered list for Combo Box ListFillRange - Nested Combo Boxes DoctorG Excel Programming 3 February 23rd 06 12:15 PM
Combo Boxes and Tick Boxes turner2000[_2_] Excel Programming 0 September 29th 04 09:09 PM


All times are GMT +1. The time now is 03:15 AM.

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"