Check box will insert text

K

Kimberly

Is there a way that when a box is checked in a Word Doc that a paragraph can
automatically be inserted. I am creating a template letter and if my
associates selects a certain option I need it to insert and print a
disclosure statement. Thank you
 
D

Doug Robbins - Word MVP on news.microsoft.com

See the article "How to create a Userform" at:

http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm

and the following pages of fellow MVP Greg Maxey's website :

http://gregmaxey.mvps.org/Create_and_employ_a_UserForm.htm

http://gregmaxey.mvps.org/Populate_UserForm_ListBox.htm

Say you had a checkbox with the name chkDisclosure on such a form, and in
the document, you had a { DOCVARIABLE varDisclosure } field, in the command
button click event. you would use something like

If chkDisclosure.Value = True then
ActiveDocument.Variables("varDisclosure").Value = "This is the
disclosure statement."
Else
ActiveDocument.Variables("varDisclosure").Value = " "
End If


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top