Remove Alternative Text from Shapes and Images in Microsoft Word
Question details
Remove alternative text and stored titles from shapes and images in a Word document.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- The user wants to clear descriptive text from document images and shapes, including objects stored as either inline or floating objects.
- Observed behavior
- A macro that handles only inline images appears to skip some objects, and older documents may also contain descriptive text in the Title property.
Open the document in the desktop version of Microsoft Word and check whether you need to preserve descriptions for accessibility. The macro below processes objects in the main document story, so check headers and footers separately.
Clear Alt Text and Titles with a Word VBA Macro
Use this macro to clear both properties from inline objects and floating shapes in the main document.
Open the document in desktop Word. On Windows, press Alt+F11 to open the Visual Basic editor.
In the VBA editor, select the document or Normal project, then choose Insert > Module.
Paste the following code into the module: Sub RemoveAltText() Dim x As Shape, y As InlineShape For Each x In ActiveDocument.Shapes x.AlternativeText = "" x.Title = "" Next x For Each y In ActiveDocument.InlineShapes y.AlternativeText = "" y.Title = "" Next y End Sub
Return to Word, open View > Macros, select RemoveAltText, and click Run. Right-click a sample image or shape and choose Edit Alt Text to check the result.

Remove Alt Text from Individual Word Objects
Use the Alt Text pane when only a few images or shapes need editing.
Work with Word Documents in WPS Writer
WPS Writer is a free, lightweight alternative for working with Word documents. Its familiar interface and Microsoft Word format support make it easy to move existing files into WPS Office. The Word VBA macro above is specific to Microsoft Word.

Frequently Asked Questions
Why does my macro skip some pictures in Word?
Some pictures are stored as floating Shapes rather than InlineShapes. Loop through both ActiveDocument.Shapes and ActiveDocument.InlineShapes to cover both types in the main document story.
Why should I clear the Title property as well as AlternativeText?
Older documents may store descriptive text in an object's Title property. Set both Title and AlternativeText to an empty string if you need to remove both.
Does the macro also clear alt text in headers and footers?
No. The document-level collections used by the macro cover the main story. Open each header or footer and inspect its objects separately.
Can I remove alt text without using a macro?
Yes. Right-click an image or shape, choose Edit Alt Text, and delete its description. Clear the Title field too if your Word version displays one.
Should I remove alt text from every image?
Consider accessibility first: meaningful images need useful descriptions for screen reader users. Review each object's purpose before clearing its text.




