How to Remove All Content Controls from a Word Document
Question details
The user needs to remove multiple content control boxes from a shared document to make collaborative editing easier.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Collaborating on a Word document where existing content controls are getting in the way of standard text editing.
- Observed behavior
- Content control boxes inserted by other editors clutter the document, restricting easy text modification and complicating the shared editing process.
Before running any VBA macro, be sure to save a backup copy of your Word document so you do not accidentally lose important text if the macro modifies unintended areas.
Use a VBA Macro to Delete Content Controls
Run a customized VBA script to quickly iterate through your active document and remove all content controls automatically.
If users frequently add content controls that you cannot prevent, a VBA macro is the most efficient way to clear them out en masse. You can customize the macro to either delete the text along with the control, or preserve the text while only removing the control box.
Open your Word document and press ALT + F11 on your keyboard to launch the Visual Basic for Applications (VBA) editor.
In the VBA editor, click on 'Insert' in the top menu bar and select 'Module' to create a new standard module.
Copy and paste the following code into the module window: Sub DeleteAllContentControls() Dim i On Error Resume Next With ActiveDocument.ContentControls For i = .Count To 1 Step -1 'Remove the next line to keep the control contents. .Item(i).Range.Delete .Item(i).Delete Next i End With End Sub
By default, the line '.Item(i).Range.Delete' removes the text inside the control. If you want to keep the text and only remove the interactive box, delete or comment out that specific line before proceeding.
Press F5 on your keyboard or click the green 'Run' button on the toolbar to execute the macro. All content controls will be instantly removed from your active document.

Enjoy a Cleaner Editing Experience with WPS Office
If complex document restrictions and content controls in Microsoft Word are slowing down your workflow, try WPS Office. It provides a lightweight, highly compatible, and distraction-free environment for seamless collaborative editing.
- 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite on your computer.
- 2. Open Your Document: Launch WPS Writer and open your .docx file directly. WPS will seamlessly render your document formatting.
- 3. Edit Without Clutter: Enjoy editing your shared document using standard text tools without getting bogged down by restrictive content control fields.

Frequently Asked Questions
Can I prevent other editors from inserting content controls?
Generally, you cannot prevent others from adding content controls unless you utilize Word's 'Restrict Editing' feature to limit what users can do in the shared document.
What is the difference between deleting a content control and its contents?
Deleting the control merely removes the interactive box, leaving the text inside intact. Deleting the contents removes both the box and any text or data contained within it.
Will this macro work on controls inside headers and footers?
Yes, if the macro is set up in a standard VBA project module, it can be designed to iterate through all objects in the document, including headers, footers, and text boxes.




