Formatting Issues

How to Add Letters to Chapter-Based Page Numbers in Word

Bushra ParveenBushra Parveen Nov 3, 2026 869 views

Question details

The user needs to format document page numbers to display a combination of the chapter number, a custom letter, and the page number, such as '1A-4'.

How to Add Letters to Chapter-Based Page Numbers in Word
Product
Word
Device & OS
not provided
Scenario
Creating complex page numbering schemas for a multi-chapter or technical document.
Observed behavior
The standard page numbering tools do not natively support appending custom letters dynamically, requiring the use of manual field codes in the document header or footer.
Before you start

Ensure your document chapters are formatted using built-in heading styles (like Heading 1) and that a numbered list or multilevel list is applied to those headings.

Solution 1Recommended

Use STYLEREF and PAGE Fields to Combine Numbers and Letters

This method dynamically pulls the chapter heading number, attaches your designated letter, and displays the current page number.

By utilizing Word's field codes, you can customize exact numbering layouts that standard page number galleries do not offer. The STYLEREF field will search the current page for a specified style and reproduce its numbering.

1
Access the header or footer

Double-click the top or bottom margin of your document to open the Header & Footer editing mode where you want the page number to appear.

2
Insert the STYLEREF field code

Press Ctrl + F9 on your keyboard to insert a set of field brackets { }. Inside the brackets, type: STYLEREF "Heading 1" \n to pull only the chapter number.

3
Add the custom letter and hyphen

Click immediately outside the closing bracket } and type your desired letter followed by a hyphen. For example, type 'A-' so it looks like: { STYLEREF "Heading 1" \n }A-

4
Insert the PAGE field code

Immediately after the hyphen, press Ctrl + F9 again to insert another set of field brackets. Type PAGE inside these new brackets. Your complete code should look like: { STYLEREF "Heading 1" \n }A-{ PAGE }.

5
Update and display the results

Highlight the entire code string, right-click, and select 'Update Field'. Then, press Alt + F9 to toggle off the field codes and view your formatted page number (e.g., 1A-4).

Use STYLEREF and PAGE Fields to Combine Numbers and Letters
Dynamic Letters for Different Chapters: If you need the letter to change per chapter (e.g., Chapter 1 gets 'A', Chapter 2 gets 'B'), apply a unique Character Style to the letters where they appear in your document text, and use a second STYLEREF field referencing that character style instead of typing a static letter.

Easily Manage Advanced Page Numbering with WPS Writer

WPS Writer provides robust support for advanced document formatting, including STYLEREF and PAGE field codes, making it simple to create customized, chapter-based page numbering for complex documents.

  1. 1. Open Headers and Footers: Double-click the top or bottom margin of your document in WPS Writer to activate the Header and Footer editing area.
  2. 2. Insert Field Codes: Navigate to the 'Insert' tab and select 'Field', or simply press Ctrl+F9 to manually type your STYLEREF and PAGE field codes.
  3. 3. Update Fields Instantly: Right-click your inserted field codes and click 'Update Field' to instantly display your combined chapter and page numbers.
Fully compatible with Microsoft Word field codes and numbering formats.Intuitive and easy-to-use interface for managing headers, footers, and page layouts.Lightweight, fast, and completely free to use for your daily document needs.
microsoft office alternative - wps office

Frequently Asked Questions

What does the \n switch do in the STYLEREF field?

The \n switch tells the word processor to retrieve only the paragraph number (the chapter number) of the referenced style, ignoring the actual heading text.

Why is my STYLEREF field showing an 'Error! No text of specified style in document' message?

This error occurs because the style you referenced (e.g., 'Heading 1') has not been applied to any text in your document, or the spelling of the style name in the field code does not exactly match the style name used in the document.

How do I switch between viewing the field codes and viewing the actual page numbers?

You can easily toggle between field codes and their results by pressing Alt + F9 (or Option + F9 on a Mac) on your keyboard.

Will this page numbering format update automatically in the Table of Contents?

Yes, if constructed correctly using STYLEREF and PAGE fields, the custom page number format (like 1A-4) will accurately generate and reflect in your Table of Contents when you update the TOC.