logo
search
Document Editing Problems

How to Replace Square Symbols with Checkbox Content Controls Using VBA in Word

Camila MilosovichCamila Milosovich Oct 20, 2026 868 views

Question details

The user wants to find static square characters in a document and replace them with interactive checkbox content controls using a VBA macro.

How to Replace Square Symbols with Checkbox Content Controls Using VBA in Word
Product
Microsoft Word
Device & OS
not provided
Scenario
Automating the conversion of static square bullets or symbols into interactive checkboxes to create a fillable form.
Observed behavior
The user needs a script to target specific Unicode square characters (like U+25A1 or U+25A0) and substitute them with functioning content control checkboxes.
Before you start

Ensure your document is saved as a Macro-Enabled Word Document (.docm) and create a backup copy before executing any custom VBA macros.

Solution 1Recommended

Run a VBA Macro to Replace Square Characters with Checkboxes

Use a custom VBA macro to automatically search for a specific Unicode square character and replace it with an interactive content control checkbox.

This method targets specific Unicode square characters, such as the white square (U+25A1) or the black square (U+25A0). The macro will scan the document and insert a functioning checkbox where the symbol is found.

1
Open the VBA Editor

Open your Word document and press Alt + F11 to launch the Microsoft Visual Basic for Applications editor.

2
Insert a New Module

Click on 'Insert' in the top menu and select 'Module' to create a blank workspace for your script.

3
Paste the VBA Code

Paste your custom VBA script into the module. Ensure you set the search parameter to target ChrW(&H25A1) for white squares or ChrW(&H25A0) for black squares.

4
Execute the Macro

Press F5 or click the 'Run' button in the toolbar to execute the macro. The script will iterate through the document and convert the specified symbols.

5
Verify the Checkboxes

Close the VBA editor and return to your document to confirm that the static squares have been successfully replaced with clickable checkboxes.

Run a VBA Macro to Replace Square Characters with Checkboxes
Identifying the Right Symbol: If no matches are found, verify which exact square character is present in your document. You may need to change the Unicode value in the Find parameter to match your specific square symbol.
Easy Checkbox Insertion

Easily Add Interactive Checkboxes in WPS Writer

Instead of relying on complex VBA macros to convert symbols, WPS Writer provides a straightforward way to insert interactive checkboxes directly into your documents, making form creation simple and efficient.

  1. 1. Open WPS Writer: Launch WPS Office and open your document in WPS Writer.
  2. 2. Enable the Developer Tab: Go to 'Menu' > 'Options' > 'Customize Ribbon' and check the 'Developer' tab to make it visible on your ribbon.
  3. 3. Insert a Form Field: Click on the 'Developer' tab in the top ribbon and select 'Check Box Form Field' to insert a checkbox directly at your cursor's location.
  4. 4. Format and Protect: Double-click the inserted checkbox to adjust its default value (checked or unchecked), then click 'Protect Document' to enable interactive clicking.
Insert interactive checkboxes with a single clickFully compatible with Microsoft Word document formats (.docx)User-friendly interface for designing fillable formsBuilt-in form controls without requiring complex macro programming
microsoft office alternative - wps office

Frequently Asked Questions

Why isn't the VBA macro finding any square symbols in my document?

This usually happens because the macro is searching for a specific Unicode character (like U+25A1), but your document uses a different square symbol (like U+25A0 or a Wingdings character). You must find the exact Unicode value of your symbol and update the VBA script accordingly.

Can I use this VBA macro to replace other types of bullets with checkboxes?

Yes. By modifying the search parameter in the VBA code to target the specific character code of your current bullet points, you can replace any symbol with a checkbox content control.

Are content control checkboxes compatible with older versions of Word?

Content control checkboxes were introduced in Word 2010. If you save the document in an older format (.doc) or open it in Word 2007 or earlier, the interactive checkboxes may be converted to static text or fail to function correctly.

How do I ensure the checkbox shows a specific symbol when checked?

In your VBA script, you can configure the ContentControl.CheckedSymbol properties. You can specify the exact font and character code (such as a standard checkmark or a cross) that should appear when the user clicks the box.