![Microsoft word hide text box](https://kumkoniak.com/27.jpg)
![microsoft word hide text box microsoft word hide text box](https://support.content.office.net/en-us/media/cdc8c4db-8f12-401e-ba0a-4ca191f77c46.png)
I was following the URL from above but I think it's dated. If you want an inform checkbox you may need to look into using this Legacy Form/Checkbox. This could be called via a keyboard shortcut or event, but this will cause a "pop-up window". This sub will make the CheckBox appear when run, but I'm not sure the logic you would use to call it, perhaps an event like opening of document? Sub Loadform()
![microsoft word hide text box microsoft word hide text box](https://images.tips.net/S01/Figs/T274F1.png)
Note: I didn't test how to insert the checkbox into the word doc, I'll leave you some of the learning! Here is my module: Public Sub CheckBox1_Click()ĪctiveDocument.Bookmarks("bookmark"). = CheckBox1.Value You should be presented with a checkbox that will hide/unhide your text. Then double click the checkbox to bring up the "module" it would run, notice there is no module in the side pane! Edit the module, then go back to the userform and press F5. What you want to do is Insert -> Userform then drag a checkbox over from the ToolBox
![microsoft word hide text box microsoft word hide text box](https://i.ytimg.com/vi/0wNR-3rOsQ8/maxresdefault.jpg)
Your code worked fine when I tested it, but I ran into a few issues since I've never messed with userforms/checkboxs in Word VBA and I suspect you may have the same.įor instance, the first thing I did was create Insert -> Module.
![Microsoft word hide text box](https://kumkoniak.com/27.jpg)