How to Create a Word Style That Only Adds a Red Underline
Question details
The user needs to apply a red underline to text without losing or overriding the text's existing direct formatting, such as font color or size.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Applying specific underline formatting to selected text in a document while preserving its original unique styles.
- Observed behavior
- Applying a standard character style often overwrites existing direct formatting, replacing original font colors or sizes with the style's default settings.
Ensure your document is saved and enable the Developer tab in your ribbon if you plan to use the VBA macro method to apply formatting.
Use a VBA Macro to Add a Red Underline
A VBA macro is the most effective way to add a red underline to selected text without overriding its existing font color, size, or style.
While Word's built-in character styles are useful, they can sometimes strip away direct formatting previously applied to text. Using a macro ensures that only the underline property is modified, preserving everything else.
Press 'Alt + F11' on your keyboard to open the Visual Basic for Applications (VBA) editor in Word.
Click 'Insert' in the top menu bar and select 'Module' to create a blank script window.
Paste a VBA script that targets the selected text. The code should set 'Selection.Font.Underline = wdUnderlineSingle' and 'Selection.Font.UnderlineColor = wdColorRed'.
Close the VBA editor, select the text you want to underline in your document, and run the macro from the Developer tab.
Create or Modify a Character Style
If you prefer not to use macros, you can create a custom character style or modify the built-in Emphasis style to apply a single underline.
Easily Format Text with WPS Writer
WPS Writer provides an intuitive interface for managing character styles and custom formatting, fully compatible with Microsoft Word documents. You can seamlessly apply unique underline colors without needing complex macros.
- 1. Open Your Document: Launch WPS Writer and open the document you wish to format.
- 2. Select Target Text: Highlight the specific words or phrases that need a red underline.
- 3. Access Font Settings: Right-click the selected text and choose 'Font' from the context menu to open the detailed settings dialog.
- 4. Apply Red Underline: Select an underline style, change the 'Underline color' dropdown to red, and click 'OK' to apply it without altering the primary text color.

Frequently Asked Questions
Why does applying a character style remove my text color?
By default, when you apply a character style, it overrides direct formatting (like a manually applied text color) if the style has its own font color defined. Leaving the font color property blank in the style settings can sometimes help, but VBA macros are safer for perfectly preserving exact direct formats.
Can I change the color of just the underline in Word?
Yes. You can change the underline color without changing the text color by opening the Font dialog box (Ctrl+D), selecting your preferred Underline style, and then choosing a specific color from the 'Underline color' dropdown menu.
How do I access the built-in Emphasis style?
You can find the Emphasis style in the Styles gallery on the Home tab. If it is not visible, open the Styles pane, click 'Options' at the bottom, and choose to show 'All styles' to locate and modify it.




