![]() ![]() 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() 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 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |