Remove the Header and Page Number from the Last References Page in Word
Question details
Remove the header and page number from the final references page without removing them from earlier pages.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- A document ends with references or endnotes, and the final page should not display a header or page number.
- Observed behavior
- The final page shares a header and page number with earlier pages in the section, so deleting the header directly can affect all of them.
Check whether the page number is in the header or footer, and whether numbering starts at 1 and continues without restarting. Also check whether the final page is part of Word's endnote area, where you cannot insert a section break directly.
Hide the Header and Page Number on the Last Page with IF Fields
Use conditional fields when the final page is in an endnote area and the document uses continuous page numbering starting at 1.
The field displays its contents only when the current page number is not the document's total page count. This method assumes the displayed page numbers match the physical page count.
Field braces must be inserted as Word field braces, not typed as ordinary characters. The example below is for a header containing text and a page number.
Double-click the header area on the final page. Identify the header text and any page number that need to be hidden.
In the header, replace the content to be controlled with this field structure: { IF { PAGE } <> { NUMPAGES } "Header text Page { PAGE }" "" }. Insert each pair of field braces with Ctrl+F9 on Windows, and replace Header text with your own text.
If the page number is in the footer instead, double-click the footer and use a separate field such as { IF { PAGE } <> { NUMPAGES } "{ PAGE }" "" }, inserting each pair of field braces as Word fields.
Select each new field and press F9 on Windows to update it. Open File > Print to check the final page and earlier pages.

Unlink a New Final Section Before Removing Its Header
Use a separate section when the final page contains regular document text where a section break can be inserted.
Edit Word-Compatible Documents with WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface for editing documents and managing headers, footers, and page numbers. Open Word files to continue working in WPS; check complex fields and endnote layouts after migration.

Frequently Asked Questions
Why does deleting the header remove it from other pages?
Pages in the same Word section generally share a header. Double-click the header to edit it, but use a conditional field or an unlinked section if only the final page should differ.
Can I insert a section break directly in my endnotes?
No. Word does not allow section breaks inside the endnote area. A conditional field can hide header content on the last page without placing a break in the endnotes.
What if my page numbers restart in another section?
A PAGE-to-NUMPAGES comparison may give the wrong result because PAGE shows the displayed number while NUMPAGES counts document pages. A PAGEREF field referencing a bookmark on the actual last page can be an alternative when displayed page numbers are unique.
Why is the line under my header still visible?
The line may be a paragraph border or a drawn object, so hiding the header text with an IF field does not necessarily hide it. For a paragraph border, select the header paragraph and choose Home > Borders > No Border; this removes that border from all pages sharing the header.
How do I check whether the fields worked?
Update the fields in the header and footer, then open File > Print. Check both the final page and earlier pages, including any pages with different first-page or odd-and-even headers.




