For common information, such as Author name, File name, date, or file path, follow these steps:
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.
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.
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.
For more on headers and footers, see Headers and footers in Word.