Skip to main content

How to automatically add captions to images in Word document?

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  /  Inquire for Information based on Document, 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 our 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 swiftly to any location  /  auto-insert repetitive text  /  seamlessly toggle between document windows  /  11 Conversion Tools...

👉 Want to try these features? Kutools for Word offers a 60-day free trial, with no limitations! 🚀
Free Download     Read More     Buy Now
 
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations