T
Travis Montgomery
Hello all,
I'm trying to write a macro that will run upon exiting a dropdown box in
a protected word form. What I'd like to do is, when a user chooses an
option in the dropdown box other than the fist choice, the text in the
box is changed to bold. So far I have this code:
ActiveDocument.Unprotect
Selection.Font.Bold = True
ActiveDocument.Protect wdAllowOnlyFormFields, NoReset
This gets me half way, if a user clicks on the box it changes to bold.
What I think I need now is an If then statement that checks the selected
text and if it does not equal "no change" (the default entry in the
dropdown) it bolds the text.
Can this be done, can anyone fill in the code that I need?
Thanks,
Travis
I'm trying to write a macro that will run upon exiting a dropdown box in
a protected word form. What I'd like to do is, when a user chooses an
option in the dropdown box other than the fist choice, the text in the
box is changed to bold. So far I have this code:
ActiveDocument.Unprotect
Selection.Font.Bold = True
ActiveDocument.Protect wdAllowOnlyFormFields, NoReset
This gets me half way, if a user clicks on the box it changes to bold.
What I think I need now is an If then statement that checks the selected
text and if it does not equal "no change" (the default entry in the
dropdown) it bolds the text.
Can this be done, can anyone fill in the code that I need?
Thanks,
Travis