|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Range.Shading Property (Word)
Returns a Shading object that refers to the shading formatting for the specified object.
This example applies yellow shading to the first paragraph in the selection.
With Selection.Paragraphs(1).Shading .Texture = wdTexture12Pt5Percent .BackgroundPatternColorIndex = wdYellow .ForegroundPatternColorIndex = wdBlack End With
This example applies 10 percent shading to the first word in the active document.