Edit

Share via


FormField.Enabled property (Word)

True if a form field is enabled. Read/write Boolean.

Syntax

expression.Enabled

expression An expression that represents a 'FormField' object.

Remarks

If a form field is enabled, its contents can be changed as the form is filled in.

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

See also

FormField Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.