How do I retrieve data collected with the FILLIN field code?

K

kcm

I'm collecting information from a user via the field code FILLIN so that I
can use the info in other parts of my document. How do I retrieve the info
once Word collects it? Where is it stored?
 
D

Doug Robbins - Word MVP

You can get the information by using the following code:

Dim afield As Field
For Each afield In ActiveDocument.Fields
If afield.Type = wdFieldFillIn Then
MsgBox afield.Result
End If
Next afield


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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top