Check Multiple Legacy Form Check Boxes in Microsoft Word with VBA
Question details
The user wants to check multiple legacy form check boxes in a Word document at once.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- A document contains multiple legacy form check boxes that need to be selected.
- Observed behavior
- A VBA macro can select legacy form check boxes while leaving other form field types unchanged.
Confirm that the boxes are legacy form fields, not check box content controls. Open the document in a desktop version of Word that supports VBA and make sure you are allowed to run macros.
Use a VBA macro to check legacy form check boxes
Use this method to select legacy check box form fields in the active Word document.
The macro tests each form field's type before setting its check box value to True. It does not select check box content controls.
In Word, open the document and select Developer > Visual Basic. If the Developer tab is hidden, enable it in Word's ribbon settings.
In the VBA editor, select Insert > Module, then paste this code: Sub CheckAllLegacyCheckBoxes() Dim field As FormField For Each field In ActiveDocument.FormFields If field.Type = wdFieldFormCheckBox Then field.CheckBox.Value = True End If Next field End Sub
Return to Word, select Developer > Macros, choose CheckAllLegacyCheckBoxes, and select Run. Check the form to confirm the intended boxes are selected.
Select File > Save As. Choose Word Macro-Enabled Document (.docm) if you want to keep the macro with the document.

Edit Word documents with WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Word documents. Its Microsoft Word format compatibility makes it easy to move existing documents into your workflow. It does not fix Word's VBA behavior.

Frequently Asked Questions
Will the macro also check Word content controls?
No. The macro loops through ActiveDocument.FormFields and selects legacy check box form fields, not check box content controls.
How can I show the Developer tab in Word?
Open Word's ribbon customization settings and enable Developer. You can then use Developer > Visual Basic and Developer > Macros.
How do I clear the legacy check boxes instead?
In the VBA editor, change field.CheckBox.Value = True to field.CheckBox.Value = False, then run the macro from Developer > Macros.
Do I need to save the document as a DOCM file?
Use File > Save As and choose Word Macro-Enabled Document (.docm) if you want to retain a macro stored in the document. A DOCX file cannot retain VBA macros.




