If you have Kutools for Word, with its Images feature, you can quickly insert multiple pictures with file path and name into the Word document immediately. Then click OK button, all the images in the selected folder have been inserted into the Word document, and the file path and name is inserted as caption we well, see screenshot: Then press F5 key to run this code, a Browse window is displayed, please select the folder that contains the images you want to insert, see screenshot:Ĥ. InlineShapes.AddPicture xPath & '\' & xFile, False, Trueģ. Set xFileDialog = Application.FileDialog(msoFileDialogFolderPicker)
VBA code: Insert multiple pictures with filename: Sub PicWithCaption() And then, click Insert > Module, copy and paste below code into the opened blank module: Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.Ģ. The following VBA code can help you to insert the file path and name as caption when inserting the images, please do as this:ġ. Insert multiple pictures with filename by using Kutools for Word Insert multiple pictures with filename by using VBA code How could you deal with this task in Word file? But, sometimes, you need to insert the file path and names as caption when inserting the pictures.
In Word document, you can quickly insert multiple pictures at once by using the Insert function.
How to insert multiple pictures with filename in Word document?