Each with its advantages and disadvantages. It is the Cadillac interface between the human user and the Word form. Many people ask "How can I set up my document or template so that I am prompted to enter information when I open the document or create a new document." The best answer to this question is to send you back to the Userform.
When all of your fields are entered simply select all (CTRL+a) and F9 to update the fields. Built in and custom DocProperty fields can be used once or multiple times in each document to populate form entries and repeat text.If it is essential that the TOC itself be "dynamic" and updated based on real time formfield text changes then you can use the method illustrated below.
When you need to update the TOC you can unprotect the form and unlock the TOC with CTRL+SHIFT+F11. Provided that you don't need the TOC to update after protecting the document, you can simply lock the TOC field (select it and press CTRL+F11) before protecting the document. For reasons too complicated to go into here, REF and other field codes will not be updated using "calculate on exit" if the REF field follows a TOC field in the document. For more on macros for working with the field collection in Word, see:Ģ. You can use a STYLEREF field as described in MVP Suzanne Barnhill's presentation on STYLEREF fields, or you can run a macro on exit from the field that will update all of the fields, including REF Fields, anywhere in a document. However, there are some well suited work a rounds. REF fields that are located outside the main text range of the document (e.g., headers, footers, text boxes, etc.) will not automatically update on exit from the field. In the introduction to this section I stated that Word will fill in or populate "most" other designated "like" fields automatically. Word will populate the REF CustomerName fields with the name you entered in your form field.ġ.
Note the bookmark name (Text1) and check "Calculate on exit."
This Microsoft Word Tips & Microsoft Word Help page offers several solutions to the question, "How do I enter data in one place in a document and have it automatically repeated in other places?" My intention is not to reinvent the wheel, so after a brief discussion I may simply send you on to an existing tips page or other web articles containing full explanations of some of the more comprehensive methods.