#1   Report Post  
Dave
 
Posts: n/a
Default "Fillin" in word

I am trying to put a form in word that inserts different text depended on
what the user has entered i.e. following a question if the user enters "1"
then a block is inserted but if they entered "2" then a different block of
text is entered, and so on.

If this possible
--
Dave
  #2   Report Post  
Doug Robbins
 
Posts: n/a
Default

Create an autotext entry for each of the pieces of text and then use a
dropdown type formfield from which the user selects the number that relates
to each piece of text (or perhaps some more meaningful entry) and then on
exit from that formfield, run a macro similar to the following:

Sub Macro2()

'

' Macro2 Macro

' Macro created 15-11-97 by Doug Robbins to add the address corresponding to
a drop down name

'

Set myDrop = ActiveDocument.FormFields("Dropdown1").DropDown

Company = myDrop.ListEntries(myDrop.Value).Name

Address = ActiveDocument.AttachedTemplate.AutoTextEntries(Co mpany).Value

ActiveDocument.FormFields("Text1").Result = Address



End Sub

--
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
"Dave" wrote in message
...
I am trying to put a form in word that inserts different text depended on
what the user has entered i.e. following a question if the user enters "1"
then a block is inserted but if they entered "2" then a different block of
text is entered, and so on.

If this possible
--
Dave



  #3   Report Post  
Suzanne S. Barnhill
 
Posts: n/a
Default

You may be able to achieve what you want with an AutoTextList field. See
http://word.mvps.org/FAQs/TblsFldsFms/AutoTextList.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Dave" wrote in message
...
I am trying to put a form in word that inserts different text depended on
what the user has entered i.e. following a question if the user enters "1"
then a block is inserted but if they entered "2" then a different block of
text is entered, and so on.

If this possible
--
Dave


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reveal Formating Code Dick Microsoft Word Help 5 March 12th 05 09:51 PM
letters - ask/fillin Caroline H New Users 2 February 25th 05 08:19 PM
Converted document from WordPerfect. New footnotes are not being. C Lowman Microsoft Word Help 1 January 26th 05 10:19 PM
word xp crashes after macros are recorded kharris0405 Microsoft Word Help 3 January 11th 05 10:50 PM
Macro that will add the file path & date to Word footnotes? Rich P Microsoft Word Help 2 December 15th 04 07:49 PM


All times are GMT +1. The time now is 12:42 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"