logo
search
Document Editing Problems

How to Show Only Checked Items in a Word Legacy Checkbox Form

Camila MilosovichCamila Milosovich Oct 21, 2026 868 views

Question details

The user wants to display only the selected options in a protected Word form by hiding or removing any items where the legacy checkboxes are unchecked.

How to Show Only Checked Items in a Word Legacy Checkbox Form
Product
Microsoft Word
Device & OS
not provided
Scenario
Formatting and finalizing a protected Word checklist so that it can be printed, saved as a PDF, or shared digitally without the clutter of unselected options.
Observed behavior
Unchecked items and their associated text remain fully visible in the protected document, making the finalized form look cluttered with irrelevant duties or options.
Before you start

Ensure your Developer tab is enabled to access legacy form fields and VBA tools, and save a backup copy of your document before running any macros.

Solution 1Recommended

Use a VBA Macro to Hide Unchecked Items

Best for documents being printed or converted to PDF, as hidden text will not appear in the final printed output.

When distributing a form as a physical copy or a PDF, simply hiding the unchecked legacy form fields is sufficient. A macro can automatically unprotect the form, evaluate the status of the checkboxes, hide paragraphs associated with unchecked boxes, and reprotect the document.

1
Bookmark the checklist items

Select the text and the corresponding legacy checkbox for your first item. Go to the Insert tab, click Bookmark, type a name (e.g., 'Check1Paragraph'), and click Add. Repeat this for each item.

2
Open the VBA Editor

Press Alt + F11 on your keyboard to open the Microsoft Visual Basic for Applications window. Go to Insert > Module to create a new blank module.

3
Input the macro code

Write a script that unprotects the document, checks the field results, and applies hidden formatting. For example: If .FormFields("Check1").Result = False Then .Bookmarks("Check1Paragraph").Range.Font.Hidden = True.

4
Reprotect the document in the code

Ensure the end of your With ActiveDocument block includes the reprotection command: If .ProtectionType = wdNoProtection Then .Protect Type:=wdAllowOnlyFormFields, NoReset:=True.

5
Run the macro

Press F5 or click the Run button in the VBA toolbar. The unchecked items will be hidden, leaving only the checked options visible.

Use a VBA Macro to Hide Unchecked Items
Perfect for PDF Exports: Once the items are hidden, you can confidently go to File > Save As and choose PDF. The hidden text will be completely excluded from the resulting file.
Free Microsoft Office alternative

Create and Manage Professional Documents with WPS Office

While running complex VBA macros for legacy form fields is a task specific to Microsoft Word, you can create, edit, and print highly compatible checklists and forms using WPS Office—a lightweight, feature-rich, and cost-effective alternative.

  1. 1. Download and Install: Get WPS Office from the official website and easily install it on your PC or Mac.
  2. 2. Open Your Document: Launch WPS Writer and open your existing document to view and edit your checklists.
  3. 3. Export to PDF: Easily convert your finalized forms to PDF using the built-in Export to PDF feature.
Highly compatible with Microsoft Word (.docx) formats and templatesFamiliar, intuitive user interface for a seamless migration experienceFree to use with a lightweight installation packageIncludes powerful built-in tools for PDF conversion and document protection
microsoft office alternative - wps office

Frequently Asked Questions

Can I hide unchecked legacy checkboxes without using macros?

No, Microsoft Word does not have a built-in toggle to automatically hide unchecked legacy form fields upon saving or printing. You must use a VBA macro to evaluate the checkbox results and change the text visibility programmatically.

Why should I delete unchecked items instead of hiding them?

If you share the electronic Word document with others, they can easily turn on hidden text visibility in Word's display settings. Deleting the unchecked items ensures that the unselected options are permanently removed and cannot be viewed by the recipient.

Are Content Controls better than Legacy Form Fields for new forms?

Yes. Microsoft recommends using Content Controls for modern documents. They are more flexible, easier to format, and simpler to interact with using VBA compared to older legacy form fields.

How do I unprotect a document using VBA before modifying it?

You can use the .Unprotect method in your macro. It is best practice to first check if the document is actually protected by using the condition: If ActiveDocument.ProtectionType = wdAllowOnlyFormFields Then ActiveDocument.Unprotect.