Skip to main content

How to automatically add captions to images in Word document?

Author: Siluvia Last Modified: 2020-12-24

Supposing you have created a Word document mixed with texts and pictures, in order to easily navigate among these images, adding captions to all of them will be a good choice. The most common method, you have to select the image and then insert a bookmark with the Bookmark function in Word. But it will be time-consuming if lots of images need to be handled. Here we provide two methods for you to automatically add captions to all images at once in a Word document.

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 below VBA code can help to add captions to all images at once in a Word document. Please do as follows.

1. Open the Word document contains the images you will add captions to, press the Alt + F11 keys to open the Microsoft Visual Basic for Applications window.

2. In the Microsoft Visual Basic for Applications window, click Insert > Module. Then copy below VBA code into the Module window.

VBA code: Automatically add captions to images at once

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 the F5 key to run the code.

Now captions are added to all images in current document at once as below screenshot shown.


Automatically add captions to images at once with Kutools for Word

This section introduces the Multiple Captions utility of Kutools for Word. With this Multiple Captions utility, you can not only add captions to all images at once in Word, but also can add captions to all tables or equations as you need.

Kutools for Word : With more than 100 handy Word add-ins, free to try with no limitation in 60 days.

1. In the document you will add captions to all images, click Kutools Plus > Multiple Captions. See screenshot:

2. In the Batch Insert Captions dialog box, only check the Figure box and click OK.

Then captions will be added to all images at once in current document.

Note: With this utility, you can also add captions to tables, equations as well as images at the same time. 

If you want to have a free trial of this utility, please go to free download the software first, and then go to apply the operation according above steps.

Best Office Productivity Tools

Kutools for Word - Elevate Your Word Experience with Over 100 Remarkable Features!

๐Ÿค– Kutools AI Assistant: Transform your writing with AI - Generate Content  /  Rewrite Text  /  Summarize Documents  /  Get Quick Answers, all within Word

๐Ÿ“˜ Document Mastery: Split Pages  /  Merge Documents  /  Export Selection in Various Formats (PDF/TXT/DOC/HTML...)  /  Batch Convert to PDF  /  Export Pages as Images  /  Print Multiple Files at once...

โœ 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  /  All Headers  /  Text Boxes  /  Hyperlinks  /  For more removing tools, head to the Remove group...

โž• Creative Inserts: Insert Thousand Separators  /  Check Boxes  /  Radio Buttons  /  QR Code  /  Barcode  /  Diagonal Line Table  /  Equation Caption  /  Image Caption  /  Table Caption  /  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...

๐Ÿ‘‰ Want to try these features? Download Kutools for Word now! ๐Ÿš€
 
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations