K
kheisler6
I've never done VBA or macros in Word, but am familiar with
programming them in Access. I assume the concept is the same.
I created a fillable survey using MS Word's form feature (check boxes,
text boxes, etc.). The rest of the survey is protected.
For most questions, you can select only one answer. For example, "What
is your sex?" The user has to check Male or Female. But as you know
with the check boxes they can technically check both. I'd like to
prevent this from happening by assigning a macro that runs on the Exit
event of a check box (but I guess I would have to add it to every
check box?). Each macro would verifiy that only one checkbox in a
"set" of boxes has been selected. If more than one in a set has been
checked, then an error message would pop up and tell the user. (Or
even better, the whole macro will just set a checked box to uncheck if
the user selects another one in the set.)
I'd like to avoid handling all of this by putting the check boxes in a
"frame" because most of my users will want to use their TAB key to
navigate through the survey, and doing so will cause them to select
the next answer in the frame rather than move to the next question.
(When will MS Word add an "option group" feature?!)
What's the best way to handle this? Thank you!
Kurt
programming them in Access. I assume the concept is the same.
I created a fillable survey using MS Word's form feature (check boxes,
text boxes, etc.). The rest of the survey is protected.
For most questions, you can select only one answer. For example, "What
is your sex?" The user has to check Male or Female. But as you know
with the check boxes they can technically check both. I'd like to
prevent this from happening by assigning a macro that runs on the Exit
event of a check box (but I guess I would have to add it to every
check box?). Each macro would verifiy that only one checkbox in a
"set" of boxes has been selected. If more than one in a set has been
checked, then an error message would pop up and tell the user. (Or
even better, the whole macro will just set a checked box to uncheck if
the user selects another one in the set.)
I'd like to avoid handling all of this by putting the check boxes in a
"frame" because most of my users will want to use their TAB key to
navigate through the survey, and doing so will cause them to select
the next answer in the frame rather than move to the next question.
(When will MS Word add an "option group" feature?!)
What's the best way to handle this? Thank you!
Kurt