View Single Post
  #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