I want to have a MS Word 2010 document where there is a checkbox (ckeckable) and a textbox (textfield) where different text is displayed depending on whether the checkbox is clicked or not.
I have tried searching for it but somehow all the suggestions are not meant as solutions for the checkbox question…
I would think that the solution should be used in Visual Basic?
Something like this?
This assumes you have a checkbox called
CheckBox1and a text box calledTextBox1. The above code goes in the ThisDocument module.Result looks like this
and this
.
EDIT Whoops, I made these pics in Excel… Oh well, they look almost identical in Word.
EDIT You have now changed the requirement and want the textbox to “be hidden” when the checkbox is unchecked. There is no formal way to “hide” a textbox, but you can remove it visible features, i.e. the text it contains as well as the “sunken” special effect, such that it is indistinguishable from its background: