![change selected cell background color word 2013 change selected cell background color word 2013](https://tipsmake.com/data/images/instructions-to-add-background-color-to-each-cell-in-the-table-on-word-picture-3-wOwCjwpJ1.png)
NOTE: The white space issues illustrated below seem to apply only to Word 2010 and earlier versions. This No color item will remove current Word document’s background. Click the Menus tab Click the Format drop down menu Go on to click the Page Color item Then you will view the No Color sub item. Using the Red, Green, and Blue controls, specify the RGB values of the text you want to change.
![change selected cell background color word 2013 change selected cell background color word 2013](https://www.datanumen.com/blogs/wp-content/uploads/2016/12/Select-Table-then-Click-Design-then-Click-More.jpg)
Click the Font Color drop-down list and choose More Colors. Since space has been added above/below those paragraphs, white space occurs even if shading has been applied to the entire cell. Method A: easily get Background Removal in Word 2007/2010/2013/2016/2019 if you have Classic Menu for Office. Click the Format button and then click Font. The green and blue texts are individual paragraphs that have been applied paragraph shading. The pink text is in a separate paragraph that has been applied text shading. In Figure 7 below, this is illustrated by applying different colors. You may then find that your table cell still has white space because the shading of the paragraphs is still in effect. Therefore, you select the cell, open the Borders and Shading dialog box, select the same color as applied to the paragraphs, select Cell in the Apply to field and click OK. The cell has white space so you find out that you should have applied the shading to the cell, not the paragraphs. Imagine you have applied shading to the paragraphs in a table cell. This may make it more difficult to find out what causes white space in cells. You can also apply different types of shading to the same cell at the same time. Not only can you apply different types of shading to table cells. What happens if you apply mixed shading to a cell? As mentioned above, the cell shading white space issues only seem to occur in Word 2003 and earlier versions. Note that the text in the upper-left cell consists of one paragraph which has been applied the listed settings. They don't take into account any implicit formatting, such as that applied through conditional formatting.Figure 6. Cell shading – examples. You'll want to keep in mind that these functions (whether you look at the RGB color values or the color index values) examine the explicit formatting of a cell. You could simply skip that step, however, and rely on the value returned by GetFillColor to put together an IF formula, in this manner: Assuming that cell B5 is formatted using one of the colors you expect (red or green), you can plug the index value back into the earlier macros to get the desired results. The result is the color index value of cell B5 is displayed.
![change selected cell background color word 2013 change selected cell background color word 2013](https://support.content.office.net/en-us/media/d1b6c6aa-8170-43c0-84e0-d52e4d3891c1.jpg)
Now, in your worksheet, you can use the following: One way you can do this is to use a very simple macro that does nothing but return a color index value:įunction GetFillColor(Rng As Range) As Long In other words, Excel allows you to use different shades of green and red, so you'll want to make sure that the RGB values and color index values used in the macros match those used by the color shades in your cells. Whether you are using the RGB approach or the color index approach, you'll want to check to make sure that the values used in the macros reflect the actual values used for the colors in the cells you are testing. If you prefer to check index colors instead of RGB colors, then the following variation will work:ĮlseIf = 4 Then You could use the function in a cell in this manner: This macro evaluates the RGB values of the colors in a cell, and returns a string based on those values. For instance, the following example returns one of the three words, based on the color in a target cell: The macro can check the color with which a cell is filled and then return a value. The solution, then, is to use a user-defined function, which is (by definition) a macro. The drawback to this approach, of course, is that it doesn't allow you to reference cells other than the one in which the formula is placed. The result is that you will see text based upon the color of the cell in which you place this formula. With this name defined, you can, in any cell, enter the following: In the Refers To box, enter the following, as a single line:.Use a name such as "mycolor" (without the quote marks).Excel displays the Define Name dialog box. The closest non-macro solution is to create a name that determines colors, in this manner: Unfortunately, there is no way to acceptably accomplish this task without using macros, in one form or another. Steve prefers to not use a macro to do this. For example, if A1 has a green fill, he wants to return the word "go", if it has a red fill, he wants to return the word "stop", and if it is any other color return the word "neither".
![change selected cell background color word 2013 change selected cell background color word 2013](https://peltiertech.com/images/2013-09/ColorChooser1a.png)
Steve would like to create an IF statement (using the worksheet function) based on the color of a cell.