Skip to main content

Kutools for Office β€” One Suite. Five Tools. Get More Done.

How to click to enlarge or expand image in Word document?

Author Siluvia Last modified

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:

  1. Open the Word document containing the images, and press Alt + F11 to open the "Microsoft Visual Basic for Applications" window.
  2. 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
  3. 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.

  4. 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
  5. Press F5 to run the code, then close the "Microsoft Visual Basic for Applications" window.
  6. Now, when you click an image in the document, it will be enlarged to the specified size. See screenshot:
    Image enlarged after clicking

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.

Kutools for Word, equipped with AI πŸ€–, offers over 100 handy features to simplify your tasks.
  • 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.
      Illustration: Resize all pictures to 50% of their original size
  • To adjust all images to match the size of a selected image:
    1. Select an image to serve as the model size.
    2. Click "Kutools Plus" > "Resize" > "Resize All Images Based On Selection". All images will be resized to the same size as the selected image.
      Illustration: Resize all pictures to the size of the selected picture
  • If you require more specific options, click "Kutools Plus" > "Resize" > "Customize" to access advanced resizing settings.
    Illustration: Resize all pictures with 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.

Kutools for Word is the ultimate Word add-in that streamlines your work and boosts your document processing skills. Get It Now!

Office Tab: Brings tabbed interfaces to Word, Excel, PowerPoint...
Navigate through documents using Office Tab
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 and Kutools Plus tabs on the Word Ribbon
πŸ‘‰ Want to try these features? Download Kutools for Word now! πŸš€
 

✨ 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