E
eggrock
This is a very basic question..
I have several Combo Boxes on one sheet with macros for each. I'm
trying to change the selected item in one Combo Box based on the value
of another. My problem is in accessing the Combo Box, I can't find any
help on how to do it. The examples don't help, using something like:
ComboBox1.AddItem "Duck"
Gets me a "Object Required" error.
I have the boxes 'named' "DropDown1", "DropDown2", etc.
Specifically I'd like to do this: If I particular value is selected in
one Combo Box, I'd like to set another Combo Box to a different value.
Hmm, that doesn't sound informative, I'll try this:
"DropDown1" has items of "none" and "SCSI".
"DropDown2" has items of "none" and "SCSI controller model X"
Both are at "none" by default, but when I select "SCSI" in the first
box I want the second box to switch from "none" to "SCSI controller
...." automatically.
I've tried this:
Worksheets("Sheet1").ComboBox("DropDown2") etc. -- This is the part
where I'm not doing something right (This particular example gets me
"Object doesn't support this method".)
How do I specifically reference a List Box or ComboBox by name (or
whatever I need to do)?
Thanks in advance for your help!
I have several Combo Boxes on one sheet with macros for each. I'm
trying to change the selected item in one Combo Box based on the value
of another. My problem is in accessing the Combo Box, I can't find any
help on how to do it. The examples don't help, using something like:
ComboBox1.AddItem "Duck"
Gets me a "Object Required" error.
I have the boxes 'named' "DropDown1", "DropDown2", etc.
Specifically I'd like to do this: If I particular value is selected in
one Combo Box, I'd like to set another Combo Box to a different value.
Hmm, that doesn't sound informative, I'll try this:
"DropDown1" has items of "none" and "SCSI".
"DropDown2" has items of "none" and "SCSI controller model X"
Both are at "none" by default, but when I select "SCSI" in the first
box I want the second box to switch from "none" to "SCSI controller
...." automatically.
I've tried this:
Worksheets("Sheet1").ComboBox("DropDown2") etc. -- This is the part
where I'm not doing something right (This particular example gets me
"Object doesn't support this method".)
How do I specifically reference a List Box or ComboBox by name (or
whatever I need to do)?
Thanks in advance for your help!