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.
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
'Updated by Extendoffice 20181123
Dim xPic As InlineShape
For Each xPic In ActiveDocument.InlineShapes
Selection.InsertCaption "Figure", "", "", wdCaptionPositionBelow, 0
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.
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.
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!
Dive into the highlighted features below or click here to explore the full power of Kutools for Word.
➕ 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 our Insert Group
Transform your Word tasks with Kutools. 👉 Download with 30-day trial Now 🚀.