I am trying to extract individual entered fields in a filled-in form in Word
using Visual Basic. I would like to be able to run a procedure on filled-in
(completed) forms to quickly extraction of data on many forms. What commands
can I use to extract the data from the individual form fields. I am assuming
that I need to name the form fields to some unique name to enable this.

Re: How do I use Visual Basic to extract data from forms in Word? by Jezebel

Jezebel
Thu Nov 17 19:30:39 CST 2005

Form fields are automatically named as bookmarks, but you might want to
assign your own - more meaningful - names.

From VBA, use something like

ActiveDocument.Bookmarks([FieldName]).Range

to retrieve the contents



"joeyb" <joeyb@discussions.microsoft.com> wrote in message
news:D02F0646-679A-4191-BA36-9A7F081722CA@microsoft.com...
>I am trying to extract individual entered fields in a filled-in form in
>Word
> using Visual Basic. I would like to be able to run a procedure on
> filled-in
> (completed) forms to quickly extraction of data on many forms. What
> commands
> can I use to extract the data from the individual form fields. I am
> assuming
> that I need to name the form fields to some unique name to enable this.



Re: How do I use Visual Basic to extract data from forms in Word? by Doug

Doug
Thu Nov 17 23:20:43 CST 2005

Use a modification of the method in the article "Find & ReplaceAll on a
batch of documents in the same folder" at:

http://www.word.mvps.org/FAQs/MacrosVBA/BatchFR.htm

to get the .Result of each formfield in each document.

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

"joeyb" <joeyb@discussions.microsoft.com> wrote in message
news:D02F0646-679A-4191-BA36-9A7F081722CA@microsoft.com...
>I am trying to extract individual entered fields in a filled-in form in
>Word
> using Visual Basic. I would like to be able to run a procedure on
> filled-in
> (completed) forms to quickly extraction of data on many forms. What
> commands
> can I use to extract the data from the individual form fields. I am
> assuming
> that I need to name the form fields to some unique name to enable this.