How to Fix Word StyleRef Fields Wrapping Incorrectly in Headers
Question details
Users are seeking a solution for StyleRef fields that fail to display multi-line text correctly when placed inside header or footer table cells.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Using a StyleRef field within a table cell in a header or footer to reference document text that spans multiple lines.
- Observed behavior
- The StyleRef field flickers or truncates, causing the second line of the wrapped text to disappear. Additionally, printing to Adobe PDF may introduce unrelated field values, despite standard PDF conversions appearing correct.
Determine whether the repeated header values in your document need to change by page or section, as this will dictate which workaround is viable for your template.
Use Mapped Document Property Content Controls
Since the StyleRef truncation is a known bug, using mapped content controls is the most reliable workaround for data that remains constant across pages or sections.
This method replaces the problematic StyleRef field with Document Property Content Controls. It is highly effective for cover page properties or metadata like 'Title' and 'Subject' that do not vary by section.
Navigate to the 'Insert' tab in the ribbon, click on 'Quick Parts', and select 'Document Property'. Choose a property such as 'Title' or 'Subject' to insert into the body of your document.
Double-click the header or footer area to open it. Go to 'Insert' > 'Quick Parts' > 'Document Property' and select the exact same property you used in step 1.
Type your multi-line text into one of the content controls. The other mapped control will automatically update to reflect the wrapped text without truncation.

Report the Bug to Microsoft via Feedback
Because this behavior is a reproducible software bug across multiple versions of Word, reporting it helps prioritize a permanent fix.
Try WPS Office for Stable Document Formatting
If unresolved formatting glitches and field truncation bugs in Microsoft Word are interrupting your workflow, consider switching to WPS Office. It provides a stable, highly compatible, and lightweight platform for creating and formatting professional documents without the hassle.
- 1. Download and install: Get the free WPS Office installer from the official website and install it on your computer.
- 2. Open your Word documents: Launch WPS Writer and open your existing .docx files. Your layouts and templates will be preserved.
- 3. Edit with confidence: Manage complex headers, footers, and styles with a stable word processor that respects your formatting choices.

Frequently Asked Questions
What is a StyleRef field used for in Microsoft Word?
A StyleRef field automatically displays text that has been formatted with a specific style. It is most commonly used in headers or footers to dynamically display the current chapter title, heading, or section name on each page.
Why does my StyleRef field lose its second line in the header?
This is caused by a known bug in certain versions of Microsoft Word. When a StyleRef field is placed inside a table cell within a header or footer, and the referenced text is long enough to wrap to a second line, the field struggles to render correctly and truncates or flickers.
Does adding spaces after the StyleRef field fix the truncation issue?
No, user testing confirms that simply adding spaces after the StyleRef field does not resolve the wrapping or truncation bug in affected versions of Microsoft Word.
Can I use Document Properties instead of StyleRef for changing headers?
No. Document Property Content Controls (like Title or Subject) will display the exact same text throughout the entire document. If you need headers that dynamically change based on the specific chapter or heading on the current page, you must use a StyleRef field.




