Use the Add method with the FormFields object to add a check box form field. Set ffield = ActiveDocument.FormFields(1).CheckBox The following example determines whether the ffield object is valid before changing the check box size to 14 points. If ActiveDocument.FormFields(1).Type = wdFieldFormCheckBox ThenĪctiveDocument.FormFields(1).CheckBox.Value = True The following example checks the type of the first form field if it is a check box, the check box is selected. The index number represents the position of the form field in the FormFields collection. ActiveDocument.FormFields("Check1").CheckBox.Value = True The following example selects the check box form field named "Check1" in the active document. Use the CheckBox property with the FormField object to return a CheckBox object. Use FormFields (Index), where Index is index number or the bookmark name associated with the check box, to return a single FormField object. Represents a single check box form field.
0 Comments
Leave a Reply. |