Enabled Property

Microsoft Word Visual Basic

Enabled Property

       

True if a form field is enabled. If a form field is enabled, its contents can be changed as the form is filled in. Read/write Boolean.

Example

If the first form field in the active document is an enabled check box, this example selects the check box.

Dim ffFirst As FormField

Set ffFirst = ActiveDocument.FormFields(1)
If ffFirst.Enabled = True And _
        ffFirst.Type = wdFieldFormCheckBox Then
    ffFirst.CheckBox.Value = True
End If