Field codes in Word

In This Article

What are field codes?

List of field codes

What are field codes?

Fields in Microsoft Word are used as placeholders for data that might change in a document and for creating form letters and labels in mail-merge documents. These kinds of fields are also called field codes, and they are different from the type of fields that are used to enter information, such as on a form. For information about adding form fields to a document, see Create forms that users complete in Word or Make a checklist in Word.

Word inserts fields automatically when you use particular commands, such as when you insert a page number, when you insert a document building block such as a cover page, or when you create a table of contents. You can also manually insert fields to automate aspects of your document, such as merging data from a data source or performing calculations.

In Microsoft Word 2007, there is little need to insert fields manually, because built-in commands and content controls provide most of the capabilities that fields provided for many versions of Word. You are more likely to encounter fields in documents that were created in an earlier version of Word. For more information about working with field codes, see Insert and format field codes.

Security Note: Because field codes can be visible to anyone reading your document, be sure that the information you place in field codes is not information that you want kept private.

Top of Page

List of field codes


AddressBlock field

Advance field

Ask field

Author field

AutoNum field

AutoNumLgl field

AutoNumOut field

AutoText field

AutoTextList field


Bibliography field


Citation field

Comments field

Compare field

CreateDate field


Database field

Date field

DocProperty field

DocVariable field


FileName field

FileSize field

Fill-In field

= (Formula) field


GoToButton field

GreetingLine field


If field

IncludePicture field

IncludeText field

Index field

Info field


Keywords field


LastSavedBy field

Link field

ListNum field


MacroButton field

MergeRec field

MergeSec field


Next field

NextIf field

NoteRef field

NumChars field

NumPages field

NumWords field


Page field

PageRef field

Print field

PrintDate field

Private field


Quote field


RD (Referenced Document) field

Ref field

RevNum field


SaveDate field

Section field

SectionPages field

Seq (Sequence) field

Set field

SkipIf field

StyleRef field

Subject field

Symbol field


TA (Table of Authorities Entry) field

TC (Table of Contents Entry) field

Template field

Time field

Title field

TOA (Table of Authorities) field

TOC (Table of Contents) field


UserAddress field

UserInitials field

UserName field


XE (Index Entry) field

Share Facebook Facebook Twitter Twitter Email Email

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!