Add the file name, date, author or other document properties to a header or footer

For common information, such as Author name, File name, date, or file path, follow these steps:

Header ribbon with Document Info highlighted

  1. Double-click the header or footer.
  2. Select Document Info and choose the information you want.

Note: Select Document Property to select additional information, such as Title, Company, or Subject.

Using field codes

If you don't find the info you want, such as file size or who it was last saved by, you can use field codes to add a variety of document properties.

Note: If you already added a header or footer from the gallery, this procedure may replace or change the formatting of the current header or footer.

QuickParts menu with Fields highlighted

  1. Go to Insert >Header or Footer.
  2. Select Edit Header or Edit Footer.
  3. Select Quick Parts and select Field.

<a href=Field selection categories and properties" />

In the Field names list, choose the field you want (such as FileName, Date, Author, or Title), choose the format you want in the Field properties section.

Field code options section

If a field property has addition options, choose any you like in the Field options section.

Word for the web doesn't support adding file names and other document properties to a header or footer.

Select Open in Word to open your document in the desktop version of Word if you have it and follow the steps here on the Windows tab.

Image of the Open in Desktop App command

For more on headers and footers, see Headers and footers in Word.