Shaded Property

Microsoft Word Visual Basic

expression.Shaded

expression    Required. An expression that returns a FormFields collection object.

Remarks

Shading makes form fields easier to locate in a document and doesn't affect the printed output.

Example

This example removes shading from form fields in Employment Form.doc.

Documents("Employment Form.doc").FormFields.Shaded = False
		

This example adds shading to the form fields in the active document and protects the document for forms.

With ActiveDocument
    .FormFields.Shaded = True
    .Protect Type:=wdAllowOnlyFormFields, NoReset:=True
End With