A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Check box will insert text



 
 
Thread Tools Display Modes
  #1  
Old April 11th, 2009, 11:20 PM posted to microsoft.public.word.newusers
kimberly
external usenet poster
 
Posts: 107
Default Check box will insert text

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
  #2  
Old April 12th, 2009, 03:11 AM posted to microsoft.public.word.newusers
Doug Robbins - Word MVP on news.microsoft.com
external usenet poster
 
Posts: 409
Default Check box will insert text

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...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

"Kimberly" wrote in message
...
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



  #3  
Old April 13th, 2009, 08:06 PM posted to microsoft.public.word.newusers
kimberly
external usenet poster
 
Posts: 107
Default Check box will insert text

Yes it was. Thank you. I am just hoping I can do it, ha.
--
kmill74


"Doug Robbins - Word MVP on news.microsof" wrote:

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...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

"Kimberly" wrote in message
...
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




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:06 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.