Formatting Issues

How to Create a Word Style That Only Adds a Red Underline

John WilsonJohn Wilson Nov 2, 2026 869 views

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.

How to Create a Word Style That Only Adds a Red Underline
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the VBA Editor

Press 'Alt + F11' on your keyboard to open the Visual Basic for Applications (VBA) editor in Word.

2
Insert a New Module

Click 'Insert' in the top menu bar and select 'Module' to create a blank script window.

3
Enter the Macro Code

Paste a VBA script that targets the selected text. The code should set 'Selection.Font.Underline = wdUnderlineSingle' and 'Selection.Font.UnderlineColor = wdColorRed'.

4
Run the Macro

Close the VBA editor, select the text you want to underline in your document, and run the macro from the Developer tab.

Macro Security: You may need to enable macros in your Word Trust Center settings to allow the VBA script to run.
WPS Writer Formatting Tools

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. 1. Open Your Document: Launch WPS Writer and open the document you wish to format.
  2. 2. Select Target Text: Highlight the specific words or phrases that need a red underline.
  3. 3. Access Font Settings: Right-click the selected text and choose 'Font' from the context menu to open the detailed settings dialog.
  4. 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.
Free and lightweight word processorFully compatible with Microsoft Word (.docx) formatsIntuitive Styles pane for precise formatting controlRich text customization options including discrete underline coloring
microsoft office alternative - wps office

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.