object. Can be any valid WdColor constant or a value returned by Visual Basic's RGB function. Read/write.
| WdColor can be one of these WdColor constants. |
| wdColorGray625 |
| wdColorGray70 |
| wdColorGray80 |
| wdColorGray875 |
| wdColorGray95 |
| wdColorIndigo |
| wdColorLightBlue |
| wdColorLightOrange |
| wdColorLightYellow |
| wdColorOliveGreen |
| wdColorPaleBlue |
| wdColorPlum |
| wdColorRed |
| wdColorRose |
| wdColorSeaGreen |
| wdColorSkyBlue |
| wdColorTan |
| wdColorTeal |
| wdColorTurquoise |
| wdColorViolet |
| wdColorWhite |
| wdColorYellow |
| wdColorAqua |
| wdColorAutomatic |
| wdColorBlack |
| wdColorBlue |
| wdColorBlueGray |
| wdColorBrightGreen |
| wdColorBrown |
| wdColorDarkBlue |
| wdColorDarkGreen |
| wdColorDarkRed |
| wdColorDarkTeal |
| wdColorDarkYellow |
| wdColorGold |
| wdColorGray05 |
| wdColorGray10 |
| wdColorGray125 |
| wdColorGray15 |
| wdColorGray20 |
| wdColorGray25 |
| wdColorGray30 |
| wdColorGray35 |
| wdColorGray375 |
| wdColorGray40 |
| wdColorGray45 |
| wdColorGray50 |
| wdColorGray55 |
| wdColorGray60 |
| wdColorGray65 |
| wdColorGray75 |
| wdColorGray85 |
| wdColorGray90 |
| wdColorGreen |
| wdColorLavender |
| wdColorLightGreen |
| wdColorLightTurquoise |
| wdColorLime |
| wdColorOrange |
| wdColorPink |
expression.BackgroundPatternColor
expression Required. An expression that returns a Shading object.
Example
This example applies turquoise background shading to the first paragraph in the active document.
Set myRange = ActiveDocument.Paragraphs(1).Range
myRange.Shading.BackgroundPatternColor = _
wdColorTurquoise
This example adds a table at the insertion point and then applies light gray background shading to the first cell.
Selection.Collapse Direction:=wdCollapseStart
Set myTable = _
ActiveDocument.Tables.Add(Range:=Selection.Range, _
NumRows:=2, NumColumns:=2)
myTable.Cell(1, 1).Shading.BackgroundPatternColor = _
wdColorGray25