FormField.CheckBox property (Word)

Returns a CheckBox object that represents a check box form field. Read-only.

Syntax

expression. CheckBox

expression A variable that represents a 'FormField' object.

Remarks

If the CheckBox property is applied to a FormField object that isn't a check box form field, the property won't fail, but the Valid property for the returned object will be False.

Example

This example clears the check box named "Blue."

ActiveDocument.FormFields("Blue").CheckBox.Value = False

This example compares the current value with the default value of the check box named "Check1." If the values are equal, the blnSame variable is set to True.

Dim ffTemp As FormField 
Dim blnSame As Boolean 
 
Set ffTemp = ActiveDocument.FormFields("Check1").CheckBox 
If ffTemp.Default = ffTemp.Value Then 
 blnSame = True 
Else 
 blnSame = False 
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.