Document Editing Problems

Check Multiple Legacy Form Check Boxes in Microsoft Word with VBA

John WilsonJohn Wilson Nov 27, 2026 868 views

Question details

The user wants to check multiple legacy form check boxes in a Word document at once.

Check Multiple Legacy Form Check Boxes in Microsoft Word with VBA
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the VBA editor

In Word, open the document and select Developer > Visual Basic. If the Developer tab is hidden, enable it in Word's ribbon settings.

2
Insert a module

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

3
Run the macro

Return to Word, select Developer > Macros, choose CheckAllLegacyCheckBoxes, and select Run. Check the form to confirm the intended boxes are selected.

4
Save the document

Select File > Save As. Choose Word Macro-Enabled Document (.docm) if you want to keep the macro with the document.

Use a VBA macro to check legacy form check boxes
Protected forms: If document restrictions prevent the change, review them under Review > Restrict Editing. Disable protection only if you are authorized and have any required password.
Free Microsoft Office alternative

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.

Open and edit Microsoft Word DOC and DOCX filesReview and edit documents that contain formsUse a familiar interface to ease the move from Microsoft OfficeWork with a free, lightweight office suite
microsoft office alternative - wps office

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.