Skip to main content

How to automatically add captions to images in Word document?

Author Siluvia Last modified

If your Word document contains a mix of text and images, adding captions to the images makes it easier to navigate and reference them. While you can manually insert captions using Word's bookmark or caption feature, doing so for many images can be tedious. This tutorial offers two efficient methods to automatically add captions to all images in a Word documentโ€”using VBA or the Kutools for Word add-in.

Automatically add captions to images at once with VBA

Automatically add captions to images at once with Kutools for Word


Automatically add captions to images at once with VBA

The VBA method allows you to quickly add captions to all inline images at once in your Word document. Follow these steps:

  1. Open the Word document that contains the images. Press Alt + F11 to open the Microsoft Visual Basic for Applications window.
  2. In the VBA window, click Insert > Module, then copy and paste the following code into the Module window.
    Sub CaptionPictures()
    'Updated by ExtendOffice 20181123
        Dim xPic As InlineShape
        For Each xPic In ActiveDocument.InlineShapes
            xPic.Select
            Selection.InsertCaption "Figure", "", "", wdCaptionPositionBelow, 0
        Next
    End Sub
  3. Press F5 to run the code.

Captions will now be added to all images in the document.

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

Automatically add captions to images at once with Kutools for Word

The Multiple Captions utility of Kutools for Word offers a user-friendly way to add captions to all images with just a few clicks. Compared to using VBA or manual steps, this tool simplifies the process and also supports adding captions to tables and equations.

Kutools for Word, equipped with AI ๐Ÿค–, offers over 100 handy features to simplify your tasks.
  1. Open your Word document and click Kutools Plus > Multiple Captions.
    Multiple Captions button on the Kutools Plus tab on the ribbon
  2. In the Batch Insert Captions dialog box, check the Figure option and click OK.
    Batch Insert Captions dialog box

Note: With this utility, you can also add captions to tables, equations, charts and SmartArt graphics at the same time.

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

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! ๐Ÿš€
 

Best Office Productivity Tools

Kutools for Word - 100+ Tools for Word