How to Use Different Color Schemes for Sections in Microsoft Word
Question details
The user wants to apply distinct color schemes to different sections within a single document, affecting headings, captions, headers, and footers independently.

- 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.
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.
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.
Launch your Word document and press Alt + F11 on your keyboard to open the Microsoft Visual Basic for Applications window.
In the VBA editor, click on Insert in the top menu bar, then select Module. This creates a blank canvas for your 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.
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.

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. Download WPS Office: Visit the official WPS website to download and install the free office suite on your device.
- 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. Apply Formatting Customizations: Navigate to the Page Layout or Design tabs to easily manage styles, breaks, and formatting options across your document.

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.




