Group: microsoft.public.word.vba.general
From: "fumei via OfficeKB.com"
Date: Thursday, November 29, 2007 12:00 PM
Subject: Re: UserForms to Populate FormFields

Sorry, but actually answer your question.

Yes.

Userforms can put content into formfields very easily. Simply use the .
Result property of the formfield.

On userform: a control Textbox1
In document: text formfield named "Yadda"

In userform code:

ActiveDocument.Formfields("Yadda").Result = Textbox1.Text

Viola. The formfield "Yadda" will be Textbox1.Text

If you indtend to make lots of formfields, I would make a formfield object,
and a collection of them.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200711/1

Safety Articles | Usenet Groups | Usenet News | Bluegrass