P
Petr Danes
I have a set of option buttons in a group. They work fine, I use the name of
the option group to determine which one was selected. But the buttons are
also clustered into subgroups and I take different actions, depending on
which subgroup contains the selected option.
Currently, my code does it with either a SELECT CASE statement or a compound
IF-THEN-ELSEIF statement (I'm still building it). This means that whenever I
change something about the option button subgrouping, I must also change my
code. I would like to be able to look at the label attached to each button
in the group, since the format of the label tells me to which subgroup it
belongs. I can then code for this and arrange the option buttons as needed
without changing the code.
Intellisense does not offer anything helpful and I have found nothing in the
archives dealing with this. Is there a way to get from option group name to
label of selected option button?
Pete
the option group to determine which one was selected. But the buttons are
also clustered into subgroups and I take different actions, depending on
which subgroup contains the selected option.
Currently, my code does it with either a SELECT CASE statement or a compound
IF-THEN-ELSEIF statement (I'm still building it). This means that whenever I
change something about the option button subgrouping, I must also change my
code. I would like to be able to look at the label attached to each button
in the group, since the format of the label tells me to which subgroup it
belongs. I can then code for this and arrange the option buttons as needed
without changing the code.
Intellisense does not offer anything helpful and I have found nothing in the
archives dealing with this. Is there a way to get from option group name to
label of selected option button?
Pete