-
Word UserForm with three checkboxes to insert text at cursor
I have some *very* basic familiarity with writing macros but have never created a UserForm. I'm trying to make a simple form in Word with three checkboxes -- say, Checkbox1, Checkbox2, and Checkbox3. You click the checkbox(es), click an "OK" button at bottom, and then, depending on what checkbox(es) you've checked, it inserts the sentence(s) at the cursor location -- say "This is the sentence for [Checkbox1]" -- followed by a new line.
I think I get how the code should work conceptually: Each checkbox click event adds the sentence to a variable string(?), and then the OK button click event pastes the string. But I'm at a loss on how to write and execute it.
Sorry for not coming with attempted code in hand -- I've strictly worked from recorded macros in the past and don't know where to start -- but any advice would be greatly appreciated. Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules