Formatting Issues

Remove Alternative Text from Shapes and Images in Microsoft Word

Kushani NimanthikaKushani Nimanthika Nov 14, 2026 868 views

Question details

Remove alternative text and stored titles from shapes and images in a Word document.

Remove Alternative Text from Shapes and Images in Microsoft Word
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the VBA editor

Open the document in desktop Word. On Windows, press Alt+F11 to open the Visual Basic editor.

2
Insert a module

In the VBA editor, select the document or Normal project, then choose Insert > Module.

3
Add the macro

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

4
Run and verify

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.

Clear Alt Text and Titles with a Word VBA Macro
Check other document areas: The document-level Shapes and InlineShapes collections cover the main story. Inspect headers, footers, and grouped objects separately. Removing descriptions can make meaningful images less accessible to screen reader users.
Free Microsoft Office alternative

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.

Open and edit Microsoft Word DOC and DOCX filesWork with images and shapes in a familiar document editorUse a free, lightweight office suiteMove existing Word documents into WPS Writer
microsoft office alternative - wps office

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.