Formatting Issues

Remove the Header and Page Number from the Last References Page in Word

Rana GarciaRana Garcia Nov 22, 2026 868 views

Question details

Remove the header and page number from the final references page without removing them from earlier pages.

Remove the Header and Page Number from the Last References Page in Word
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the header

Double-click the header area on the final page. Identify the header text and any page number that need to be hidden.

2
Insert the conditional field

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.

3
Handle a footer page number

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.

4
Update and inspect the result

Select each new field and press F9 on Windows to update it. Open File > Print to check the final page and earlier pages.

Hide the Header and Page Number on the Last Page with IF Fields
Check header lines and restarted numbering: An empty field does not hide a paragraph border or a drawn line. To remove a paragraph border from all affected headers, select the header paragraph and choose Home > Borders > No Border. If page numbering restarts or does not match the physical page count, the NUMPAGES comparison may not work; a PAGEREF field pointing to a bookmark on the actual last page can be an alternative if displayed page numbers are unique.
Free Microsoft Office alternative

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.

Edit headers, footers, and page numbers in WPS WriterOpen and save Microsoft Word DOC and DOCX filesUse a familiar interface for a smoother move from Microsoft OfficeWork with a free, lightweight office suite
microsoft office alternative - wps office

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.