Option Button Caption

J

James Agostinho

Hello NG,
I'm a teachers aide and have been writing quizzes in Word using the radio
button (OptionButton), 10 questions in groups of 4 .
Right now I just tell the student if they a re right or wrong and give the
page in the book as a reference for the correct answer in a label.
I would also like to highlight the text of the correct answer in blue for
the students to make it easier for them to check their graded quiz. Can the
caption of an OptionButton be changed with VBA.
Thanks for any suggestions,
James
 
J

Jonathan West

James Agostinho said:
Hello NG,
I'm a teachers aide and have been writing quizzes in Word using the radio
button (OptionButton), 10 questions in groups of 4 .
Right now I just tell the student if they a re right or wrong and give the
page in the book as a reference for the correct answer in a label.
I would also like to highlight the text of the correct answer in blue for
the students to make it easier for them to check their graded quiz. Can
the caption of an OptionButton be changed with VBA.
Thanks for any suggestions,
James

Yes, you change the Caption property
 
J

James

J. West, Thank You for the quick reply.
The caption property is what I was changing, and nothing was happening.
I finally found the ForeColor property, OptionButton3.ForeColor =
RGB(255, 255, 0)
But it's all for naught, since I disable the button after the student
submits the quiz to the correcting routine.
The buttons are all dimmed out and the same old light grey color.
If anyone knows of a way to disable a button and still have the text color
visible I would be really interested.
Thanks Again J.W.

James
 
J

Jonathan West

James said:
J. West, Thank You for the quick reply.
The caption property is what I was changing, and nothing was happening.
I finally found the ForeColor property, OptionButton3.ForeColor =
RGB(255, 255, 0)
But it's all for naught, since I disable the button after the student
submits the quiz to the correcting routine.
The buttons are all dimmed out and the same old light grey color.
If anyone knows of a way to disable a button and still have the text color
visible I would be really interested.
Thanks Again J.W.

You can prevent the value of the button from being changed by setting the
Locked property to True instead of setting the Enabled property to False
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top