Document Editing Problems

Make Word 2019 Show an Image When Text Is Double-Clicked

Aamir Naveed AkramAamir Naveed Akram Nov 13, 2026 868 views

Question details

The user wants text in a Word 2019 document to reveal an image when clicked.

Make Word 2019 Show an Image When Text Is Double-Clicked
Product
Microsoft Word 2019
Device & OS
not provided
Scenario
Create interactive text, such as a guitar chord label, that reveals an associated image.
Observed behavior
Word 2019 has no native pop-up image feature for ordinary text. A MacroButton field can run a macro on a double-click to display hidden content.
Before you start

Use desktop Word with VBA support, and confirm that your organization's security policy permits trusted document macros. For the hidden-image approach, turn off Home > ¶ and clear Hidden text under File > Options > Display so the image can initially remain hidden.

Solution 1Recommended

Reveal a hidden inline image with a Word MacroButton field

Use this approach when the interaction must stay inside Word and recipients can run trusted macros.

This workaround reveals an image in the document rather than opening a pop-up. The macro toggles the display of all hidden text in the active document window, not just one selected image.

1
Insert and hide the image

Choose Insert > Pictures and insert your image. Select it, choose Picture Format > Wrap Text > In Line with Text, and then open the Home tab's Font dialog launcher. Select Hidden and click OK.

2
Add the toggle macro

Open the Visual Basic editor from Developer > Visual Basic. If Developer is missing, enable it under File > Options > Customize Ribbon. In the editor, select your document's project, choose Insert > Module, and paste: Sub ToggleHiddenImages() ActiveWindow.View.ShowHiddenText = Not ActiveWindow.View.ShowHiddenText End Sub Close the editor to return to Word.

3
Insert the clickable field

Place the cursor where the clickable text should appear. Press Ctrl+F9 to insert field braces, then type MACROBUTTON ToggleHiddenImages Double-click here for Guitar Chord between them. Use Word's inserted braces; typing ordinary braces will not create a field. Select the field and press F9 to update it. If field codes remain visible, press Alt+F9 to show the display text.

4
Save and test the interaction

Choose File > Save As and select Word Macro-Enabled Document (*.docm). Double-click the field's display text to reveal the image, then double-click again to hide it. Keep Home > ¶ turned off during testing.

5
Check recipient macro requirements

Tell recipients that the document uses a macro and should be opened in desktop Word. If a security notification appears, they should enable content only after verifying that they trust the document and its source. Organization-managed settings may prevent the macro from running.

Hidden content is not private content: Recipients can display hidden content through Word's settings without running the macro. Whether hidden content prints is controlled separately under File > Options > Display > Print hidden text.
Free Microsoft Office alternative

Use WPS Office for documents and image-based presentations

WPS Office is a free, lightweight alternative with a familiar interface and Microsoft Office format compatibility for easy migration. For a macro-free alternative to Word's hidden-image workaround, use WPS Presentation to link a text label to a slide containing the image. WPS does not fix Word's MacroButton behavior, and you should not assume that Word VBA macros will run in WPS.

Create a presentation with clickable text linking to an image slide instead of relying on Word macros.Work with Microsoft Word .docx and PowerPoint .pptx formats.Use familiar document and slide-editing tools to ease migration from Microsoft Office.Access everyday writing and presentation tools in a free, lightweight office suite.
microsoft office alternative - wps office

Frequently Asked Questions

Can Word show a pop-up image when I single-click ordinary text?

Word 2019 does not provide a native pop-up image feature for ordinary text. A MacroButton field normally runs its assigned macro when double-clicked, and the hidden-image workaround reveals content within the document rather than in a pop-up.

Why does the image remain visible after I run the macro?

Check Home > ¶ and File > Options > Display. Show all formatting marks can keep hidden content visible even when the macro turns ShowHiddenText off. Also confirm that the picture uses In Line with Text and has Hidden selected in the Font dialog.

Why does double-clicking the MacroButton text do nothing?

Confirm that the field names the macro exactly, the macro is stored in the document, and the file was saved as .docm. Check File > Options > Trust Center > Trust Center Settings > Macro Settings. If macros are disabled without notification or blocked by organizational policy, no enable-content prompt may appear; do not bypass those restrictions.

Can I use a hyperlink instead of a macro?

Yes. Select the text and choose Insert > Link to link to an image file or an accessible image URL. This opens the target through the associated application or browser rather than revealing an image inside Word. Recipients must have access to the linked location.

Will the macro reveal only the guitar chord image?

No. The sample macro changes ActiveWindow.View.ShowHiddenText, which controls the visibility of all hidden content in that document window. If you need separate click controls for multiple images, use individual PowerPoint animation triggers instead.