Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
pmburrow
 
Posts: n/a
Default inserting text from the results of a dropdown box

Can anyone please point me in the direction that I should be going?
I'm using Word 2002. At the beginning of my document I have a form
that when completed fills in the contact information that is required
for a letter and a contract.

I have a drop down box which list several different plans. I would like
to have specific text inserted inside the contract based on the choice
in the dropdown box.

I'm not sure that if the following is correct, but I have tried using
Mail Merge, and placed my data in an excel spreadsheet. I have my
"choice" listed as the column header, with my text located inside
the following cell.

I'm still having problems tying it to the results of the dropdown
box.

Any help would be appreciated. Thanks in advance.

Phillip

  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
 
Posts: n/a
Default inserting text from the results of a dropdown box

If this you are talking about a form that uses formfields in a document that
is protected for forms, you can have the text saved as autotext entries and
then use the following to insert the text that corresponds to the item
selected from the dropdown formfield:

' 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


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

"pmburrow" wrote in message
ups.com...
Can anyone please point me in the direction that I should be going?
I'm using Word 2002. At the beginning of my document I have a form
that when completed fills in the contact information that is required
for a letter and a contract.

I have a drop down box which list several different plans. I would like
to have specific text inserted inside the contract based on the choice
in the dropdown box.

I'm not sure that if the following is correct, but I have tried using
Mail Merge, and placed my data in an excel spreadsheet. I have my
"choice" listed as the column header, with my text located inside
the following cell.

I'm still having problems tying it to the results of the dropdown
box.

Any help would be appreciated. Thanks in advance.

Phillip



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
Creating dynamic cross reference links in a Word document torajudo Microsoft Word Help 5 April 27th 23 08:57 PM
Word applies direct format on File open Uriel Microsoft Word Help 16 November 27th 05 07:22 PM
End/FootNote text style Shaun Page Layout 4 July 5th 05 04:36 PM
How to select paragraph between tow specified words? ALIOX Microsoft Word Help 1 June 28th 05 08:56 AM
Converting field results to hard text Thomas Payne Formatting Long Documents 7 December 10th 04 06:39 PM


All times are GMT +1. The time now is 04:07 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"