FieldShading Property

Microsoft Word Visual Basic

Returns or sets on-screen shading for form fields. Read/write WdFieldShading.

WdFieldShading can be one of these WdFieldShading constants.
wdFieldShadingAlways
wdFieldShadingNever
wdFieldShadingWhenSelected

expression.FieldShading

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

This example enables field shading for all form fields in the active window.

ActiveDocument.ActiveWindow.View.FieldShading = _
    wdFieldShadingAlways