Valid Property

See Also         Example         Applies To

CheckBox, DropDown, or TextInput object: True if the specified form field object is a valid check box form field, drop down form field, or text form field. False if it isn't valid. Read-only Boolean.

CustomLabel object: True if the various properties (for example, Height, Width, and NumberDown) for the specified custom label work together to produce a valid mailing label.

Remarks

Use the Type property of the FormField object to determine the type of form field (returns wdFieldFormCheckBox, wdFieldFormDropDown, or wdFieldFormTextInput) before applying the CheckBox, DropDown, or TextInput property. This precaution ensures that the FormField object is the expected type. If the first form field in the active document is a check box, the following example selects the check box.

If ActiveDocument.FormFields(1).Type = wdFieldFormCheckBox Then
    ActiveDocument.FormFields(1).CheckBox.Value = True
End If