logo
search
Formatting Issues

How to Get a Word Section's Current Page Number Without Manual Bookmarks

Natalie TaylorNatalie Taylor Sep 30, 2026 870 views

Question details

Calculate and display the current page number of a specific section in a Word document without manually inserting bookmarks.

How to Get a Word Section's Current Page Number Without Manual Bookmarks
Product
Word
Device & OS
not provided
Scenario
Displaying section-specific page numbering in headers, footers, or body text based on heading locations.
Observed behavior
Users typically have to manually bookmark a page to reference its number, but they want an automated method where Word handles the bookmarking internally via cross-references.
Before you start

Ensure your document uses standard Heading styles (such as Heading 1 or Heading 2) for the sections you want to reference, as this method relies on Word's built-in heading recognition.

Solution 1Recommended

Use a Cross-Reference to the Section Heading

Insert a cross-reference to your section heading to let Word automatically generate a hidden internal bookmark and retrieve the page number.

Although you avoid manually creating a bookmark, Word automatically generates a hidden internal bookmark when you cross-reference a heading. You can easily disable the hyperlink property if you only need the static page number to be displayed.

1
Position your cursor

Place your cursor in the header, footer, or body text where you want the section's page number to appear.

2
Open the Cross-reference menu

Go to the 'References' tab (or the 'Insert' tab) on the ribbon and click on 'Cross-reference'.

3
Configure the reference type

In the dialog box, set the 'Reference type' drop-down to 'Heading' and set the 'Insert reference to' drop-down to 'Page number'.

4
Insert the page number

Select the target section heading from the list provided. Uncheck the 'Insert as hyperlink' option if you do not want the text to be clickable, then click 'Insert'.

Use a Cross-Reference to the Section Heading
Internal Bookmarks: Word assigns a hidden bookmark (like _Ref123456) to the heading when you use this method. If you delete and re-type the heading later, the cross-reference may break and will need to be re-inserted.
Work Smarter with WPS

Easily Manage Page Numbers and Cross-References in WPS Writer

WPS Office provides an intuitive interface for managing complex document formatting, including headers, footers, cross-references, and field codes. You can easily set up section-specific page numbering without getting tangled in manual bookmarking.

  1. 1. Format your headings: Open your document in WPS Writer and ensure your section titles use the built-in Heading styles from the Home tab.
  2. 2. Access the cross-reference tool: Navigate to the 'References' tab and click on 'Cross-reference'.
  3. 3. Insert the page number: Choose 'Heading' as your reference type, select 'Page number', choose your target heading, and click 'Insert' to automatically place the page number in your document.
Fully compatible with Microsoft Word document formats (.docx).Intuitive interface for inserting cross-references and managing headers/footers.Advanced field code support for dynamic page numbering and calculations.Free and lightweight office suite for seamless document editing.
microsoft office alternative - wps office

Frequently Asked Questions

Does the STYLEREF field eliminate the need for cross-referencing a page number?

No. The STYLEREF field retrieves the text of a styled paragraph (like a heading) to display it in a header or footer, but it does not calculate or retrieve the page number it resides on. You still need a PAGEREF or a cross-reference to get the actual page number.

Do I have to change the footer of every section manually to show the specific section's page number?

If you are using manual formulas or specific heading cross-references in the footer to calculate a relative page number, you must unlink the footers (turn off 'Link to Previous') and insert the specific cross-reference or field code manually for each section.

Why did my page number turn into a 'Reference source not found' error?

If the heading that the cross-reference points to is deleted, overwritten, or heavily modified, the internal hidden bookmark created by the software is destroyed. You will need to delete the error text and insert a new cross-reference pointing to the new heading.