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
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for