Building a form

E

Eric

Hello,

I am building a form and would like some of the text entered to repeat
itself automatically wherever I decide.
For instance the first fields on the first page are the date and the client
name, is there any way to link those fields to other fields or location
across the document to appear automatically without having to update the
document, almost like a cell reference in Excel (=C9)?

Thank you.


Eric
 
D

Doug Robbins - Word MVP

What sort of form?

If you are using formfields in a protected document, each formfield will
have a bookmark name assigned to it and in the other locations where you
want the data to appear, you can insert a cross reference to the text of the
bookmark. You will need to check the "Calculate on exit" box in the
properties dialog of the formfields so that the cross reference fields in
the document are updated with the information that is entered into the
formfield.

With that type of field however, the protection that must be applied to the
document does impact on the available features in Word and it may be better
to use a userform to gather the information from the user

See the article "How to create a Userform" at:

http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm

With that approach, you can either use code to insert the information into
multiple bookmarks (they must have unique names) or once again, you can use
a cross reference to the text of a bookmark.

You can also have the code set the value of variables in the document and
then insert the corresponding { DOCVARIABLE } wherever you want the
information to appear.

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

Eric

Thank you Doug, this was really helpful.

Eric

Doug Robbins - Word MVP said:
What sort of form?

If you are using formfields in a protected document, each formfield will
have a bookmark name assigned to it and in the other locations where you
want the data to appear, you can insert a cross reference to the text of
the bookmark. You will need to check the "Calculate on exit" box in the
properties dialog of the formfields so that the cross reference fields in
the document are updated with the information that is entered into the
formfield.

With that type of field however, the protection that must be applied to
the document does impact on the available features in Word and it may be
better to use a userform to gather the information from the user

See the article "How to create a Userform" at:

http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm

With that approach, you can either use code to insert the information into
multiple bookmarks (they must have unique names) or once again, you can
use a cross reference to the text of a bookmark.

You can also have the code set the value of variables in the document and
then insert the corresponding { DOCVARIABLE } wherever you want the
information to appear.

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