Field codes are used as placeholders in Microsoft Word to put dynamically changing text, such as the date and time, into a document. They’re also used for fields to support mail merge of form letters, labels, etc. Use this tag for questions about manually creating fields to achieve a specific effect, or managing fields automatically created and inserted by Word (e.g., figure and table numbers). Also use the tag for your version of Microsoft Word.
A field code is used in Microsoft Word to put dynamically changing text into a document, such as the date and time, number of pages, file-save-date, etc. They're also used for fields to support mail merge of form letters, labels, etc.
They can be manually inserted during editing, or automatically created and inserted by Word as the result of certain commands. They can also be used to perform complex operations, such as mathematical calculations or cross-referencing data in another file.
Field codes can also be added to documents using Visual Basic scripting in which case they are referred to as “Document Variables”, but they behave in largely the same way as field codes.
More information can be found by using the Help function in Microsoft Word and searching for “field codes”.