How to Change Properties of Multiple Text Boxes at Once in Word
Question details
The user needs a method to apply a gray fill and prevent deletion for multiple text boxes simultaneously, without editing each object manually.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Trying to format a document containing multiple text objects for layout or forms, but selecting all objects and running a macro failed to apply the changes.
- Observed behavior
- Selecting all text boxes and attempting to use a macro did not successfully change their background fill or apply deletion protection.
Determine exactly what type of text object is used in your document, as Word differentiates between standard inserted shapes (Text Boxes), Content Controls, and Legacy Form Fields, each requiring distinct formatting methods.
Replace Multiple Text Boxes with a Formatted Table
If text boxes are being used to structure a document layout or create forms, replacing them with a table is the most reliable way to apply global formatting and protection.
Using multiple floating text boxes often causes alignment issues and macro execution failures. Using a table allows you to apply cell shading instantly and utilize document protection seamlessly without relying on complex VBA scripts.
Go to the 'Insert' tab and click 'Table' to create a grid that matches the layout of your current text boxes.
Select the entire table or specific cells, go to the 'Table Design' or 'Table Tools' tab, click 'Shading', and choose your desired gray fill color.
Copy the text from your existing floating text boxes into the newly created table cells, then delete the old text boxes.
To prevent structural deletion, go to the 'Review' tab, select 'Restrict Editing', check 'Allow only this type of editing in the document', and select 'Filling in forms'.

Identify Object Type and Apply Specific Formatting
If you must keep the existing objects, identify their specific type to apply the correct locking and fill properties.
Use WPS Writer to Format and Protect Document Layouts
WPS Office provides highly intuitive tools to manage document layouts, apply bulk formatting, and restrict editing. Fully compatible with Microsoft Word, WPS Writer makes it simple to replace tricky text boxes with stable, protected tables.
- 1. Open your document: Launch WPS Office and open your .docx file in WPS Writer.
- 2. Insert a stable table: Navigate to 'Insert' > 'Table' to build a structured layout that replaces your floating text boxes.
- 3. Format the table cells: Highlight the table cells, navigate to 'Table Tools', and use the 'Shading' option to apply a uniform gray background.
- 4. Lock the layout: Switch to the 'Review' tab and click 'Restrict Editing' to prevent users from deleting or altering the form structure.

Frequently Asked Questions
Why didn't my macro work on all the text boxes in the document?
Macros often fail when a document contains a mixture of different object types, such as standard shapes, inline shapes, or content controls. A macro script must specifically target the correct object collection (e.g., ActiveDocument.Shapes vs ActiveDocument.InlineShapes) to apply changes globally.
How do I select multiple floating text boxes at once?
Go to the 'Home' tab, click on 'Select' (usually on the far right), and choose 'Select Objects'. You can then click and drag a selection box over the text boxes. Alternatively, hold down the 'Ctrl' key while clicking the border of each text box.
Can I group text boxes to format them simultaneously?
Yes. Once you select multiple text boxes using the 'Ctrl' key or 'Select Objects' tool, right-click the border of one text box and choose 'Group' > 'Group'. You can then apply a shape fill or outline to the entire grouped object at once.
How do I lock a specific text box so it cannot be deleted by other users?
If you are using Developer Content Controls, enable the 'Content control cannot be deleted' option in the Developer tab's Properties. For standard text boxes, you must apply document-level protection by going to 'Review' > 'Restrict Editing' and limiting modifications to specific areas.




