Template Issues

How to Automatically Add Custom Chapter-Based Captions in Word

John WilsonJohn Wilson Nov 3, 2026 869 views

Question details

The user needs to automatically insert bold figure captions with chapter-based numbering using custom heading styles, a StyleRef field, and a SEQ field.

How to Automatically Add Custom Chapter-Based Captions in Word
Product
Microsoft Word
Device & OS
not provided
Scenario
Setting up an automated way to number figures by chapter when the document uses custom heading styles instead of Word's default Heading styles.
Observed behavior
Word's built-in caption numbering feature is limited because it relies entirely on built-in Heading styles, failing to recognize and link chapter numbers to custom heading styles without a manual workaround.
Before you start

Ensure that your custom heading styles are consistently applied to all chapter titles throughout your document before configuring the automated field codes.

Solution 1Recommended

Create a Reusable AutoText Entry for Custom Captions

Since Word's default caption tool doesn't support custom headings natively, manually creating the field codes once and saving them as an AutoText entry allows you to easily insert correctly formatted captions with a keyboard shortcut.

This solution uses the StyleRef field to pull the chapter number from your custom heading style and the SEQ field to sequentially number the figures within that chapter.

1
Manually construct the caption field codes

In your document, type 'Figure ', then press Ctrl+F9 to insert a field bracket. Type 'StyleRef "Your Custom Heading Name" \s' inside the bracket. Type a hyphen '-', then press Ctrl+F9 again and type 'SEQ Figure \* ARABIC \s "Your Custom Heading Name"'. Format the entire line as bold.

2
Save the caption as an AutoText snippet

Select the entire caption line you just created. Go to Insert > Quick Parts > AutoText, and click 'Save Selection to AutoText Gallery'. Give it a memorable name like 'CustomFigCaption'.

3
Assign a keyboard shortcut

Go to File > Options > Customize Ribbon, and click 'Customize' next to Keyboard shortcuts. In Categories, scroll down to Building Blocks. Find your 'CustomFigCaption' entry, assign a shortcut key (e.g., Alt+C), and click Assign.

4
Insert the caption automatically

Whenever you insert a new image, simply press your assigned keyboard shortcut to instantly add your custom chapter-based caption. Update the descriptive text manually as needed.

Create a Reusable AutoText Entry for Custom Captions
Tip: If the SEQ fields do not update immediately after inserting a new caption or rearranging images, select the entire document (Ctrl + A) and press F9 to refresh all field codes.
Seamless Document Formatting

Easily Add and Manage Captions in WPS Writer

If wrestling with complex field codes and VBA macros is slowing down your productivity, WPS Office offers an intuitive interface for managing references, formatting documents, and inserting automated captions with high compatibility.

  1. 1. Open your document: Launch WPS Office and open your text document in WPS Writer.
  2. 2. Navigate to the References tab: Click on 'References' in the top ribbon menu, then select 'Insert Caption'.
  3. 3. Configure your caption label: Choose an existing label like 'Figure' or click 'New Label' to create a custom one.
  4. 4. Enable chapter numbering: Click the 'Numbering' button, check 'Include chapter number', select your preferred heading style, and click OK to apply.
Fully compatible with Microsoft Word formats (.docx) and standard field codesFree to download and use with a lightweight installationUser-friendly References tab makes handling captions straightforward
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't Word's default 'Include chapter number' work with custom styles?

Word's built-in caption numbering tool is strictly hardcoded to recognize only its default Heading 1 through Heading 9 styles. If your chapter titles use a custom style name, the built-in tool cannot link to them, requiring manual field codes or AutoText as a workaround.

What do the StyleRef and SEQ field codes do in a caption?

The StyleRef field dynamically searches your document for the most recent text formatted with a specific style (like your custom chapter heading) and displays it. The SEQ (Sequence) field generates an automatically incrementing number for elements like figures or tables.

How do I update all my custom captions at once?

Because custom captions rely on field codes, they may not update in real-time when you move or insert new figures. To update them all, simply select your entire document by pressing Ctrl + A, and then press F9 to refresh all fields.