Fields are most useful when you need placeholders for data that might change in your document and for creating form letters or labels in mail-merge documents.
These steps work for inserting any field code in Word.
Note that the macro makes sure that the options are set to force updating the fields and links when printing occurs, then it updates all the members of the Fields collection in the document.
If you, instead, wanted to update the fields at closing, you could use this macro: is your source for cost-effective Microsoft Word training.
The more you understand about how fields really work, the better you will be able to troubleshoot problems that may occur, or to tweak an individual field’s options to fit an unusual formatting need.
are the often-underappreciated placeholders that work behind the scenes in a document.
Specifically, you'll need to use either an Auto Open or Auto Close macro, depending on whether you want to update the fields when the document opens or closes.
In other cases, it is simpler to use the commands and options that are provided in Word to add the information that you want.
Stephanie wondered if there is a way in Word to force the updating of all fields and links in a document when either opening or saving (closing) the file.
She knows that she can force updates prior to printing, but she was looking, specifically, for the open or close method of updating.
(If it works in other versions, all the better; I originally had this problem with Word 2007, and nothing seems to have changed since then.) This includes cross-references, page numbers, tables of contents, indexes, headers, etc.
If it can be updated by pressing , I want it updated.
This chapter from Word 2016 In Depth delves into the technical nitty-gritty details that govern fields and shows you how you can select, insert, modify, and format fields to accomplish a variety of document-creation and formatting tasks.