Document Editing Problems

Select and Copy Text by Font Color in Microsoft Word

Rana GarciaRana Garcia Nov 22, 2026 868 views

Question details

Select and copy text of a particular font color from a Word document, potentially to count the words in each color.

Select and Copy Text by Font Color in Microsoft Word
Product
Microsoft Word
Device & OS
not provided
Scenario
A document contains text in several font colors, and text of the same color may also have different fonts or sizes.
Observed behavior
The user wants to isolate text of one color for copying or word counting.
Before you start

Identify the font color you want to collect and select an example in the document. If you plan to use a macro, check that your desktop version of Word supports VBA and that you know the target color's RGB values.

Solution 1Recommended

Select and copy text with similar formatting

Use Word's selection command when the target text shares the same color and other formatting.

This command matches similar formatting, not font color alone. Text with the target color may be missed if its font, size, or other formatting differs.

1
Select an example

In the document, select a word that has the font color you want to copy.

2
Select matching text

On the Home tab, choose Editing > Select > Select Text with Similar Formatting.

3
Copy the selection

Check the highlighted text, press Ctrl+C, and paste it into a new document or another destination.

4
Check for missed formatting

If matching text was missed, select an example with different formatting and repeat the command. Alternatively, apply the same custom style to all target text first, then try the selection again.

Select and copy text with similar formatting
Check the pasted result: A custom style can change formatting when applied. Confirm that it preserves the intended color and appearance, and review the copied text for omissions.
Free Microsoft Office alternative

Edit Word Documents with WPS Writer

WPS Office is a free, lightweight alternative for editing Word documents in a familiar interface. Open compatible files to continue working with document formatting, though Word's selection command and VBA macro workflow are specific to Microsoft Word.

Edit text and font colors in WPS WriterOpen and edit Microsoft Word DOC and DOCX filesUse a familiar interface for a smoother transition from OfficeWork with a lightweight, free office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why didn't Word select all the blue text?

Home > Editing > Select > Select Text with Similar Formatting considers formatting beyond color. Blue text with a different font or size may be omitted; repeat the selection for each formatting group or use a color-based macro.

Can I count words for each font color?

Extract or copy each color into a separate document, then choose Review > Word Count. Check the result if individual words contain more than one color, because splitting and joining text can affect the count.

How do I change the color used by the macro?

In the VBA editor, replace RGB(0, 0, 255) in the macro with the target color's RGB values, then run the macro again from View > Macros.

Does the macro also extract colored text from headers and footers?

No. The example searches ActiveDocument.Content, which covers the main document body. Headers, footers, and other document areas require additional searches.