LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default use of category / subcategory pattern with excel combo boxes - please help!

i have two excel columns that follow the parent/child pattern (ie.
category/subcategory)

they look like something like this:


row a row b
-------------------------------------------------------------------------------
category 1 subcategory 1
category 1 subcategory 2
category 1 subcategory 3
category 1 subcategory 4
category 1 subcategory 5
category 2 subcategory 6
category 2 subcategory 7
category 2 subcategory 8
category 2 subcategory 9
category 2 subcategory 10
category 3 subcategory 11
category 3 subcategory 12
category 3 subcategory 13
category 3 subcategory 14
category 3 subcategory 15

what I am trying to do is create two combo boxes, where the second box
loads itself with options that depend upon what was selected in the
first combo box.

in my specific example, the first combo box is a list of "column a"

question 1) I figured out how to load the list into the combo box, but
how can I display 3 entries:

ie. make the entries non duplicative, such as seen below:

category 1
category 2
category 3

rather then having 15 choices appear in combo box 1 as now occurs
(which looks like the list below):

category 1
category 1
category 1
category 1
category 1
category 2
category 2
category 2
category 2
category 2
category 3
category 3
category 3
category 3
category 3

question 2) how can I load combo box two with data the depends upon
what was selected in combo box 1

for example:

If category 1 is selected in combo box 1 the combo box 2 should contain
the selections:

subcategory 1
subcategory 2
subcategory 3
subcategory 4
subcategory 5

since the data for category 1 looks like:

row a row b
-------------------------------------------------------------------------------
category 1 subcategory 1
category 1 subcategory 2
category 1 subcategory 3
category 1 subcategory 4
category 1 subcategory 5

similarly

If category 2 is selected in combo box 1 the combo box 2 should contain
the selections:

subcategory 6
subcategory 7
subcategory 8
subcategory 9
subcategory 10

since the data for category 2 looks like:

row a row b
-------------------------------------------------------------------------------
category 2 subcategory 6
category 2 subcategory 7
category 2 subcategory 8
category 2 subcategory 9
category 2 subcategory 10

I would really appreciate any help anyone may be able to give me on
these issues.

Thanks in advance!

-Alex

 
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
Filtered list for Combo Box ListFillRange - Nested Combo Boxes DoctorG Excel Programming 3 February 23rd 06 12:15 PM
Using Combo boxes in excel Disco[_2_] Excel Programming 0 August 28th 03 10:53 AM
Using Combo boxes in excel Kevin Smith[_3_] Excel Programming 0 August 28th 03 10:49 AM


All times are GMT +1. The time now is 08:18 PM.

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"