djhawthorn
Technical User
I'm playing around with forms and stuff within Excel, and I've been scouring the web for a decent how-to or tutorial on combo boxes and haven't been able to come up with anything overly useful.
What I want to do is this:
- I need about 130 combo boxes (one per row basically)
- The combo boxes each have the same five values available (lets just say 'a', 'b', 'c', 'd' and 'e')
- When an option is selected, it changes the value in the cell next to it to another value (lets say 'a' selected in the combo changes the cell next to it to 'v', 'b' maps to 'w', 'c' maps to 'x', 'd' to 'y', 'e' to 'z').
- The text values 'v', 'w', 'x', 'y', 'z' change colours accordingly (eg., 'v' appears in red, 'w' appears in blue, 'x' in green etc.)
I'd like to do this with a bare minimum of code - I certainly don't want 130 'Combo#_Change()' subroutines.
Can someone point me in the right direction?
Just as another side question, is there a way to make the combo box align to a specific cell? At the moment it seems to be floating wherever I drop it. I'd like to be able to lock it to a cell, so that if I change the size of the cell, it will change dimensions with it. The "move and size with cells" option seems to be greyed out...
Thanks!
MCSE NT4/W2K
What I want to do is this:
- I need about 130 combo boxes (one per row basically)
- The combo boxes each have the same five values available (lets just say 'a', 'b', 'c', 'd' and 'e')
- When an option is selected, it changes the value in the cell next to it to another value (lets say 'a' selected in the combo changes the cell next to it to 'v', 'b' maps to 'w', 'c' maps to 'x', 'd' to 'y', 'e' to 'z').
- The text values 'v', 'w', 'x', 'y', 'z' change colours accordingly (eg., 'v' appears in red, 'w' appears in blue, 'x' in green etc.)
I'd like to do this with a bare minimum of code - I certainly don't want 130 'Combo#_Change()' subroutines.
Can someone point me in the right direction?
Just as another side question, is there a way to make the combo box align to a specific cell? At the moment it seems to be floating wherever I drop it. I'd like to be able to lock it to a cell, so that if I change the size of the cell, it will change dimensions with it. The "move and size with cells" option seems to be greyed out...
Thanks!
![[auto] [auto] [auto]](/data/assets/smilies/auto.gif)