How to click to enlarge or expand image in Word document?
Inserting images into a Word document can greatly enhance its visual appeal and effectiveness. However, when dealing with detailed images or needing to save space, it can be helpful to allow readers to click and enlarge images for a closer look. Word does not have a built-in feature for click-to-enlarge images, but there are workarounds to achieve this effect.
In this tutorial, we will guide you through the steps to create clickable images that enlarge or expand when clicked, enhancing the interactivity and functionality of your Word documents.
Click to enlarge or expand image with VBA code
Resize all images at once with Kutools for Word
Click to enlarge or expand image with VBA code
The following VBA code helps you enlarge images in a Word document with a click. Follow these steps:
- Open the Word document containing the images, and press Alt + F11 to open the "Microsoft Visual Basic for Applications" window.
- In the "Microsoft Visual Basic for Applications" window, click "Insert" > "Class Module". Then, copy the following code into the "Class Module" window:
Public WithEvents GApp As Word.Application 'Updated by ExtendOffice 20181129 Private Sub GApp_WindowSelectionChange(ByVal Sel As Selection) Dim xShape As InlineShape On Error Resume Next Set xShape = Sel.InlineShapes(1) xShape.Height = 200 xShape.Width = 200 End Sub
- Next, click "Insert" > "Module" and copy the following code into the "Module" window:
Dim cls As New Class1 'Updated by ExtendOffice 20181129 Sub register_Event_Handler() Set cls.GApp = Word.Application End Sub
- Press F5 to run the code, then close the "Microsoft Visual Basic for Applications" window.
- Now, when you click an image in the document, it will be enlarged to the specified size. See screenshot:
Note: In the code, the number 200 specifies the height and width of the enlarged images in points (pt). You can adjust these values to your preference.
Resize all images at once with Kutools for Word
Using the "Resize Images" utility in Kutools for Word, you can resize all images in your Word document by specifying a percentage, matching the size of a selected image, or defining specific dimensions or scales.
- To resize all images to a certain percentage of their original size:
- Click "Kutools Plus" > "Resize", and select one of the six percentages from the drop-down list. For example, choose "50%" to resize all images to half of their original size.
- Click "Kutools Plus" > "Resize", and select one of the six percentages from the drop-down list. For example, choose "50%" to resize all images to half of their original size.
- To adjust all images to match the size of a selected image:
- Select an image to serve as the model size.
- Click "Kutools Plus" > "Resize" > "Resize All Images Based On Selection". All images will be resized to the same size as the selected image.
- If you require more specific options, click "Kutools Plus" > "Resize" > "Customize" to access advanced resizing settings.
For more detailed information about Kutools for Wordβs "Resize Images" utility, please click here to read the full guide and see step-by-step instructions.
Office Tab: Brings tabbed interfaces to Word, Excel, PowerPoint...![]() |
Enhance your workflow now. Learn More about Office Tab Free Download |
Best Office Productivity Tools
Kutools for Word - Elevate Your Word Experience with Over 100 Remarkable Features!
π€ Kutools AI Features: AI Assistant / Real-Time Assistant / Super Polish (Preserve Format) / Super Translate (Preserve Format) / AI Redaction / AI Proofread...
π Document Mastery: Split Pages / Merge Documents / Export Selection in Various Formats (PDF/TXT/DOC/HTML...) / Batch Convert to PDF...
β Contents Editing: Batch Find and Replace across Multiple Files / Resize All Pictures / Transpose Table Rows and Columns / Convert Table to Text...
π§Ή Effortless Clean: Sweap away Extra Spaces / Section Breaks / Text Boxes / Hyperlinks / For more removing tools, head to the Remove group...
β Creative Inserts: Insert Thousand Separators / Check Boxes / Radio Buttons / QR Code / Barcode / Multiple Pictures / Discover more in the Insert group...
π Precision Selections: Pinpoint Specific Pages / Tables / Shapes / Heading Paragraphs / Enhance navigation with more Select features...
β Star Enhancements: Navigate to Any Location / Auto-Insert Repetitive Text / Toggle Between Document Windows / 11 Conversion Tools...
π Supports 40+ Languages: Use Kutools in your preferred language β supports English, Spanish, German, French, Chinese, and 40+ others!

β¨ Kutools for Office β One Installation, Five Powerful Tools!
Includes Office Tab Pro Β· Kutools for Excel Β· Kutools for Outlook Β· Kutools for Word Β· Kutools for PowerPoint
π¦ Get all 5 tools in one suite | π Seamless integration with Microsoft Office | β‘ Save time and boost productivity instantly
Best Office Productivity Tools
Kutools for Word - 100+ Tools for Word
- π€ Kutools AI Features: AI Assistant / Real-Time Assistant / Super Polish / Super Translate / AI Redaction / AI Proofread
- π Document Mastery: Split Pages / Merge Documents / Batch Convert to PDF
- β Contents Editing: Batch Find and Replace / Resize All Pictures
- π§Ή Effortless Clean: Remove Extra Spaces / Remove Section Breaks
- β Creative Inserts: Insert Thousand Separators / Insert Check Boxes / Create QR Codes
- π Supports 40+ Languages: Kutools speaks your language β 40+ languages supported!