CheckBox Object
Word Developer Reference |
Represents a single check box form field.
Remarks
Use FormFields(Index), where Index is index number or the bookmark name associated with the check box, to return a single FormField object. Use the CheckBox property with the FormField object to return a CheckBox object. The following example selects the check box form field named "Check1" in the active document.
Visual Basic for Applications |
---|
|
The index number represents the position of the form field in the FormFields collection. The following example checks the type of the first form field; if it is a check box, the check box is selected.
Visual Basic for Applications |
---|
|
The following example determines whether the ffield object is valid before changing the check box size to 14 points.
Visual Basic for Applications |
---|
|
Use the Add method with the FormFields object to add a check box form field. The following example adds a check box at the beginning of the active document, sets the name to "Color", and then selects the check box.
Visual Basic for Applications |
---|
|
See Also