Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Scooter
 
Posts: n/a
Default Dynamic Drop Down Boxes

Hi,

I'm a first time caller, long time listener who is wondering if anyone has
run into a similar situation. I'm using a excel 2000 spreadsheet to track
users activities. There are two drop down form controls on the worksheet, the
first is a static group of choices. I defined a group name and entered it in
the Format Control box Input Range field for the choices. The second Drop
Down box can choose from a total of 10 different group names of subcategories
depending on what the user selects in the first.

I can accomplish this if I use combo boxes by placing the following code in
the OnChange event of the first field, but I use 3000 total fields, long
story.....and combo boxes take up too much space for them to be effective.

I've tried VLookup and HLookup and even If statements but the closest I can
get is using the IF statement, and then I only get the first choice in the
subcategory group to display. I'd greatly appreciatte any help you could lend
me.

Thanx, Scooter

Function Choice(temp)

Select Case temp
Case "A": temp = "A"
Case "B": temp = "B"
yada..yada...yada
End Select

End Function

then I use Combox1.ListFillRange = temp 'to set the choices.
  #2   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

Instead of combo boxes, you can create dependent data validation lists.
There are instructions he

http://www.contextures.com/xlDataVal02.html


Scooter wrote:
Hi,

I'm a first time caller, long time listener who is wondering if anyone has
run into a similar situation. I'm using a excel 2000 spreadsheet to track
users activities. There are two drop down form controls on the worksheet, the
first is a static group of choices. I defined a group name and entered it in
the Format Control box Input Range field for the choices. The second Drop
Down box can choose from a total of 10 different group names of subcategories
depending on what the user selects in the first.

I can accomplish this if I use combo boxes by placing the following code in
the OnChange event of the first field, but I use 3000 total fields, long
story.....and combo boxes take up too much space for them to be effective.

I've tried VLookup and HLookup and even If statements but the closest I can
get is using the IF statement, and then I only get the first choice in the
subcategory group to display. I'd greatly appreciatte any help you could lend
me.

Thanx, Scooter

Function Choice(temp)

Select Case temp
Case "A": temp = "A"
Case "B": temp = "B"
yada..yada...yada
End Select

End Function

then I use Combox1.ListFillRange = temp 'to set the choices.



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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
dynamic combo boxes tjb Excel Worksheet Functions 2 January 25th 05 07:33 PM
automatic color change in cells using a drop down list kennethwt Excel Worksheet Functions 1 January 21st 05 06:37 PM
Filling drop down box Nick Excel Discussion (Misc queries) 0 November 25th 04 07:49 PM
Has anyone created forms in Excel with drop down boxes? mcdanik Excel Worksheet Functions 5 November 21st 04 04:04 PM
Drop List Referencing Boony Excel Worksheet Functions 2 November 11th 04 11:42 AM


All times are GMT +1. The time now is 06:39 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"