Document Editing Problems

Insert File Names and Dates in Microsoft Word Headers and Footers

Huma Ashraf ChHuma Ashraf Ch Nov 14, 2026 868 views

Question details

Add a document file name and date to a Word header or footer using fields.

Insert File Names and Dates in Word Headers and Footers
Product
Microsoft Word for Microsoft 365
Device & OS
not provided
Scenario
The user wants document information to appear in a header or footer.
Observed behavior
The header or footer displays the file name and date through Word fields.
Before you start

Open the document in the Word desktop app and save it with the desired file name. The available header, footer, and field controls may differ in Word for the web.

Solution 1Recommended

Insert FileName and Date fields from the Word ribbon

Use Word's field dialog to add document information to a header or footer.

1
Open the header or footer

Double-click the header or footer area where you want the information to appear.

2
Insert the file name

Select Insert > Quick Parts > Field, choose FileName, and select OK. You can also use Document Info > File Name on the Header & Footer tab if that option is available.

3
Insert the date

Place the cursor where you want the date, select Insert > Quick Parts > Field, and choose Date. Select a format and choose OK.

4
Update the fields

Right-click a field and select Update Field to refresh its value. Select Close Header and Footer when you are finished.

Insert FileName and Date fields from the Word ribbon
Choose the right date: The Date field displays the current date when updated. For a document's creation date instead, choose CreateDate in the Field dialog.
Free Microsoft Office alternative

Edit Word documents and headers with WPS Writer

WPS Office is a free, lightweight alternative with a familiar interface for working with Word documents. Open a DOCX file in WPS Writer to edit its content and headers while moving between office suites.

Edit document headers and footers in WPS WriterCompatible with Microsoft Word DOC and DOCX filesFamiliar interface for a smooth transition from Microsoft OfficeFree and lightweight for everyday document editing
microsoft office alternative - wps office

Frequently Asked Questions

How do I refresh the file name after renaming a document?

Save and reopen the renamed document if necessary, then right-click the FileName field in the header or footer and select Update Field.

Can I show the full file path instead of just the file name?

In Word's Insert > Quick Parts > Field dialog, select FileName and enable the option to add the path to the file name, if available.

Why can't I see the header and footer tools?

Double-click inside the header or footer to activate its tools. If the controls are still missing, open the document in the Word desktop app, where the field options are available.

Will the Date field always show the document's creation date?

No. The Date field shows the current date when updated. To show the creation date, select CreateDate under Insert > Quick Parts > Field instead.