Jay Freedman replied to George Gueorguiev
12-Mar-10 02:29 PM

I will assume you are dealing with legacy form fields and not content
controls...
Each dropdown needs an exit macro that transfers the .Result of the dropdown
to the .Result of the corresponding text field. As an extremely simplified
example, if there was only one dropdown and one text field, you could use
this:
Sub ExitDD()
With ActiveDocument.FormFields
.Item("Text1").Result = .Item("Dropdown1").Result
End With
End Sub
Of course, the names in quotes would need to match the bookmark names of the
fields.
If the bookmark name of each dropdown field corresponds to the name of its
text field -- for example, with the same number attached to the end of the
name -- then you could make just one exit macro and assign it to all of the
dropdowns. That macro would have to figure out the name of the dropdown that
was just exited
(http://www.word.mvps.org/FAQs/TblsFldsFms/GetCurFmFldName.htm) and compute
the name of the corresponding text field.
By the way, if you are using content controls, they do not have exit macros,
but there is a completely different mechanism for linking them. See
http://gregmaxey.mvps.org/Mapped_Content_Control.htm.
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.