How to Get a Word Section's Current Page Number Without Manual Bookmarks
Question details
Calculate and display the current page number of a specific section in a Word document without manually inserting 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.
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.
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.
Place your cursor in the header, footer, or body text where you want the section's page number to appear.
Go to the 'References' tab (or the 'Insert' tab) on the ribbon and click on 'Cross-reference'.
In the dialog box, set the 'Reference type' drop-down to 'Heading' and set the 'Insert reference to' drop-down to '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 Advanced Field Codes for Relative Page Numbering
Calculate the section's relative page number by combining the document's current page number and the heading's internal page reference.
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. 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. Access the cross-reference tool: Navigate to the 'References' tab and click on 'Cross-reference'.
- 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.

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.




