How to Add Custom Prefixes to Word Table of Contents Page Numbers
Question details
The user needs to add custom text identifiers (such as CD or DS) before the page numbers in a Word Table of Contents. Additionally, they are unable to locate the Customize Table of Contents command in their software.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Generating a Table of Contents for a document that uses specialized page numbering formats, requiring the TOC to reflect exact custom identifiers rather than standard numbers.
- Observed behavior
- The generated Table of Contents only displays standard page numbers, dropping the custom prefixes used in the document. The user also cannot find the option to customize the table.
Before manually editing your Table of Contents, ensure your document's text, headings, and overall layout are entirely finalized to avoid losing your custom edits during an accidental TOC refresh.
Manually Edit and Lock the Table of Contents
Since Word uses the standard PAGE field to generate numbers, the most reliable method for adding arbitrary text prefixes is manual editing followed by locking the TOC.
Word's built-in feature only allows chapter numbers from built-in heading styles to be automatically included in page numbers. Because there is no practical built-in way to use custom text prefixes like 'CD' or 'DS', you must manually type them into the generated TOC and lock it to prevent automatic updates.
Insert your Table of Contents as you normally would using the References tab.
Click inside the generated Table of Contents and manually type your required prefixes (e.g., 'CD' or 'DS') directly before each standard page number.
Highlight the entire Table of Contents by clicking and dragging over the text.
Press Ctrl + F11 on your keyboard. This locks the Table of Contents field, preventing Word from automatically updating it and overwriting your custom prefixes.

Locate the Insert Table of Contents Command
If you cannot find the 'Customize Table of Contents' button, it is likely named differently in your version of Word.
Create and Customize Table of Contents with WPS Writer
WPS Writer provides an intuitive interface for generating and customizing your Table of Contents. You can easily insert a TOC, manually adjust your page number prefixes, and seamlessly lock fields to preserve your specialized formatting.
- 1. Open your document: Launch WPS Writer and open your .docx file.
- 2. Insert the TOC: Navigate to the Reference tab, click on Table of Contents, and choose Insert Table of Contents to configure your layout.
- 3. Add custom prefixes: After insertion, manually type your specific 'CD' or 'DS' identifiers in front of the page numbers.
- 4. Lock the TOC formatting: Select the Table of Contents and press Ctrl+F11 to lock the field, ensuring your manual prefix edits remain perfectly intact.

Frequently Asked Questions
Can I use the 'Include chapter number' feature for custom prefixes?
Yes, but only if your prefixes are configured as automated multi-level list numbers linked to built-in heading styles. Arbitrary text like 'CD' or 'DS' cannot be directly added to the PAGE field without manual editing.
How do I unlock the Table of Contents if I need to update my document?
Click anywhere inside your locked Table of Contents and press Ctrl + Shift + F11 on your keyboard. You can then right-click and update the table, though you will need to re-enter your manual page prefixes afterward.
Why is the 'Customize Table of Contents' option missing in my Word version?
In older versions of Word, such as Word 2007 and Word 2010, the command is simply named 'Insert Table of Contents'. It functions identically and is located at the bottom of the Table of Contents drop-down menu on the References tab.




