logo
search
Formatting Issues

How to Use Different Color Schemes for Sections in Microsoft Word

John WilsonJohn Wilson Oct 10, 2026 868 views

Question details

The user wants to apply distinct color schemes to different sections within a single document, affecting headings, captions, headers, and footers independently.

How to Apply Different Color Schemes to Sections in Microsoft Word
Product
Microsoft Word
Device & OS
not provided
Scenario
Formatting a complex document where each section needs a unique visual color identity and theme.
Observed behavior
Microsoft Word does not provide a native, built-in feature to apply color schemes on a per-section basis; document themes apply globally to the entire file.
Before you start

Since this solution requires using VBA macros, ensure you have enabled the Developer tab in Word and saved your document as a Word Macro-Enabled Document (.docm) before proceeding.

Solution 1Recommended

Use VBA Macros to Apply Section-Based Colors

Because Word lacks a native section-color feature, you must write a VBA macro to programmatically define and apply custom colors to elements on a per-section basis.

While Microsoft Word restricts a single document to one global theme and color scheme, VBA (Visual Basic for Applications) allows you to bypass this limitation. By running a macro script, you can loop through the document's sections and force specific RGB colors onto target elements like headers, footers, and headings based on the section index.

1
Open the VBA Editor

Launch your Word document and press Alt + F11 on your keyboard to open the Microsoft Visual Basic for Applications window.

2
Insert a New Module

In the VBA editor, click on Insert in the top menu bar, then select Module. This creates a blank canvas for your script.

3
Add the Custom Macro Script

Write or paste a custom VBA script that loops through the ActiveDocument.Sections collection. The script should contain conditional statements to change the Font.Color or Shading.BackgroundPatternColor based on the specific section.

4
Run the Macro

Press F5 or click the Run button in the toolbar to execute the macro. Close the VBA editor to return to your document and view the applied section colors.

Use VBA Macros to Apply Section-Based Colors
Need help with VBA code?: If you are unfamiliar with writing custom VBA scripts for Word, you can ask for programming assistance on developer forums like Stack Overflow by tagging your question with 'vba' and 'ms-word'.
Free Microsoft Office alternative

Try WPS Office for Your Document Formatting Needs

While Microsoft Word requires complex VBA programming for advanced section styling, WPS Office provides a lightweight, highly compatible alternative with an intuitive interface. It seamlessly opens your existing Word documents while offering smooth and easy-to-use formatting tools.

  1. 1. Download WPS Office: Visit the official WPS website to download and install the free office suite on your device.
  2. 2. Open Your Document: Launch WPS Writer and open your existing Word files directly. All your section breaks and formatting will remain perfectly intact.
  3. 3. Apply Formatting Customizations: Navigate to the Page Layout or Design tabs to easily manage styles, breaks, and formatting options across your document.
Free to use with a familiar, user-friendly interface that requires zero learning curve.Fully compatible with Microsoft Word formats including .docx, .doc, and macro-enabled .docm files.Lightweight and fast, allowing you to format complex, multi-section documents without system lag.
microsoft office alternative - wps office

Frequently Asked Questions

Can I apply multiple document themes in a single Word document?

No, Microsoft Word only allows one global document theme (which controls Colors, Fonts, and Effects) per document. Modifying the theme colors will automatically update the entire file.

How do I manually change heading colors in a specific section?

You can highlight the specific heading text in the section and manually change its font color via the Home tab. Alternatively, create a custom Quick Style with your preferred color and apply it specifically to the headings in that section.

Does changing the page color affect only one section?

No, if you change the page color via Design > Page Color, it applies to the entire document. To add background color to a single page or section, you must insert a colored rectangle shape behind the text and set it to cover the page.

Can I have different headers and footers for each section?

Yes. By inserting a Section Break and deselecting 'Link to Previous' in the Header & Footer design tab, you can customize the header and footer content and colors independently for each section.