
Insert Text into field depending on dropdownlistbox
I believe you can just check the "calculate on exit" property for the
formfield and it will refresh any REF fields.
--
Charles Kenyon
Word New User FAQ & Web Directory:
http://www.addbalance.com/word
Legal Users' Guide to Microsoft Word (supplemented)
http://www.addbalance.com/usersguide
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
Quote:
> Hi Dan,
> insert a cross reference to the text of the bookmark "MyDropDown" and run
a
> macro on exit from that formfield that contains the code
> ActiveDocument.Fields.Update to update the cross reference with the value
> selected.
> Please post any follow-up or new questions to the Newsgroups so that
others
> may benefit therefrom or contribute thereto.
> Hope this helps,
> Doug Robbins - Word MVP
Quote:
> > Hi all,
> > I'm new in vba but try to manage the following situation.
> > Have a dropdown with 3 items (A,B,C)
> > Dependig what I'm selecting in the dropdown I want to fill in some text
on
> a
> > defined "field"
> > Questions:
> > 1) What kind of "field" do i have to palce in my form textmark ?
> > 2) How to put in the text into this field ? tried as follows:
> > if thisdocument.formfields("MyDropDown").DropDown.Value = 1 then
> > Selection.GoTo What:=wdGoToBookmark, Name:="MyTextField"
> > Selection.Find.ClearFormatting
> > Selection.TypeText Text:="selection A"
> > end if
> > Code does not work because document is protected
> > TIA
> > Dan