Please Note: This article is written for users of the following Microsoft Word versions: 2007 and 2010. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Copying Fill Color in a Table.

Copying Fill Color in a Table

by Allen Wyatt
(last updated September 21, 2015)

20

April has a table in her Word document. One row is formatted with a custom color fill to match the company's logo color. April now wants to copy that fill color to other rows. She was hoping to use the Format Painter, but that just copies the text format, not the fill color used in the table cells. April wonders if there is a way to copy the fill color from one row to another.

There are a few ways that you can approach this issue. One is to simply use the tools that are available in Word. Follow these steps:

  1. Select the row that is already filled with the desired color.
  2. Display the Design tab of the ribbon.
  3. Click the down-arrow to the right of the Shading tool, in the Table Styles group. (The tool looks like a spilling bucket of paint.) Word displays a palette of colors.
  4. Click on More Colors. Word displays the Colors dialog box. (See Figure 1.) The color of the selected row should already show in the dialog box.
  5. Figure 1. The Colors dialog box.

  6. Click OK. (Note that you made no changes in the dialog box; you just clicked OK.)
  7. Select the other rows in the table whose background color you want to change.
  8. Click on the Shading tool on the Design tab of the ribbon. Your desired color is applied to the selected rows.

After you apply the desired color, if you want to apply it elsewhere (perhaps in another table or in some cells you missed), all you need to do is select the cells and press F4. The shading is repeated on the selected cells.

If you need to do this quite a bit with a number of tables or in a number of documents, you may want to consider using a macro to do the shading. A handy little macro is the one below:

Sub ShadeTable()
    Dim backColor As Long
    Dim foreColor As Long

    If Selection.Information(wdWithInTable) Then
        With Selection.Tables(1)
            backColor = .Cell(1, 1).Shading.BackgroundPatternColor
            foreColor = .Cell(1, 1).Shading.ForegroundPatternColor
            .Shading.BackgroundPatternColor = backColor
            .Shading.ForegroundPatternColor = foreColor
        End With
    Else
        MsgBox "Put the insertion point in a table"
    End If
End Sub

The macro shades an entire table based on the shading used in the first cell of the first row of the table. All you need to do is make sure you place the insertion point somewhere within the table before running it. This macro is a variation of the macro mentioned at the following website:

http://www.wordbanter.com/showthread.php?t=84194

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (10932) applies to Microsoft Word 2007 and 2010. You can find a version of this tip for the older menu interface of Word here: Copying Fill Color in a Table.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Ignoring the Spelling of Proper Nouns

Proper nouns (such as the names of people) are routinely marked as incorrect by Word's spell checker. If you are tired of ...

Discover More

Creating a Table Using the Keyboard

Want to easily add a table to your document simply by typing a few keystrokes? Here's how you can do it in one easy step.

Discover More

Reversing Type

Most text appears black on white, not white on black. If you want to change this so that your type is reversed, here's a ...

Discover More

Do More in Less Time! Are you ready to harness the full power of Word 2013 to create professional documents? In this comprehensive guide you'll learn the skills and techniques for efficiently building the documents you need for your professional and your personal life. Check out Word 2013 In Depth today!

More WordTips (ribbon)

Adding Diagonal Borders

Want to add a border diagonally, through the middle of a table cell? It's easy if you follow the formatting steps presented ...

Discover More

Getting Rid of Background Color in All Tables

When working with tables (particularly those created by others), you can spend a large amount of time getting the formatting ...

Discover More

Adjusting Table Row Height

When working with tables, you can adjust the height of individual rows. How you go about such adjustments depends on the ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 0 + 6?

2017-08-14 13:39:09

Connie

Like RJ Steele, my "More Colors" also comes up black. Is there some setting that has to be in place for this to work? I'm using Word 2010.


2017-01-21 07:28:21

KS Narayanan

Thank you so much Sir!. I was solving crossword and I created a table. I wanted to insert color in a cell. I got the fine answer.

KS Narayanan


2016-10-28 03:32:04

anita

very useful tip


2016-09-06 07:54:31

Joan Milton

Thank you. Trying to colour fill cells was driving me crazy!


2016-09-04 22:56:08

Bill

For filling in the entire cell, highlight the desired cell(s), then, in the Home, go to the Highlight button (little "ab" with a slanted highlighter pen), and choose a color. This highlights the ENTIRE cell. THen you can choose a different font color to see the words better, if needed.


2016-06-24 12:52:31

Jean

@madhava That would be in Excel -'Conditional Formatting' --> Highlight Cell Rules --> Text That Contains... Create as you wish, then paste it into Word retaining formatting.


2016-06-20 07:36:36

madhava

Hi,
I have a requirement like I have do color change based on Yes / No condition,.if yes then one color , if no one color, is there is any code ?


2016-01-17 03:35:20

wmousavi@yahoo.co.uk

Very good.But what about borders?


2015-11-02 06:51:16

Josh M

This method completely slipped my mind. Thanks again!


2015-10-27 14:03:12

Ursula

I just wanted to say thank you! This tip is immensely helpful. Bookmarking your site now :)


2015-05-08 06:32:55

Alison

Thank you. So simple (when you know how!) Saves time too. :)


2015-01-07 10:40:33

alvaro

before i read this tip it was impossible to me to know exactly the color source cells had, the steps described here let me set just the same color without any doubt, thanks a million


2014-12-05 04:59:11

AA

@Krishna V

Thanks,
The borders and shading method works.


2014-09-04 16:17:43

Sean

Doesn't work


2014-07-31 02:10:05

Krishna V

@RJ Steele, I just came across your problem and you'd probably have moved on from this or figured a way out. But I'll tell you the solution I found for this anyway.

To figure out the colour, you can right click the cell which has the colour you want, go to Borders and Shading and then further click the Shading option. Inside you will find the colour you are looking for, click it and go to more colours, which gives you the exact combination of R, G and B. Once you have used it, you will find the relevant colour under recently used colours.

I hope that solves your problem. :)


2014-07-23 22:05:32

Leonardo

Thank you, grood job!


2014-07-08 13:17:22

Exotic Hadron

Thanks for the wonderful tip! Who'd guess that reapplying what is already applied would set the applied color to the button state.

Although it looks natural once you know that (at least all coloring controls change their color to the one used recently), it's not as easy to figure this.


2014-05-02 10:24:21

RJ Steele

Sorry, but the selected color does NOT appear in the dialog box after the document has been closed and later re-opened. The dialog box shows black. I can find no way to identify the color that was earlier used, so to copy it, etc.


2012-01-17 14:53:26

Alistair Christie

Thanks. I couldn't find that anywhere else. It amazes me that Microsoft haven't fixed this and many other bugs with tables in Word. It makes no sense that you can't use the Format Painter to apply the background colour from one row to another. Anyway, this is at least a workaround. Thanks again.


2011-11-14 13:36:35

David Ryan

Happy days. This has bugged me for ages. What's even better is the same tip works in Excel 2007.


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.