Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, and 2016. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Inserting Multiple Graphics in a Document.

Inserting Multiple Graphics in a Document

by Allen Wyatt
(last updated December 28, 2020)


Every week John needs to create an invoice and insert several scanned documents into a Word document. He wonders if there is a way to put all of the JPG images from a particular folder into the current Word document.

There are a couple of ways you can do this. One way is to simply select all the graphics and insert them in one step:

  1. Place the insertion point at the place in the document where you want the graphics inserted.
  2. Display the Insert tab of the ribbon.
  3. Click the Picture tool. Word displays the Insert Picture dialog box.
  4. Use the controls in the dialog box to locate the folder that contains the images.
  5. Press Ctrl+A. Word selects all the files in the folder.
  6. Click Insert.

That's it; Word inserts all the graphics in the document. You'll want to be careful doing this, because if there are a lot (more than, say, 100) graphics in the folder or if the graphic files are quite large, you can slow Word to a crawl or hang it completely. If the folder contains more than just graphics or you want only some of the graphic files, you can hold down the Ctrl key as you use the mouse to select graphics in step 5. The point is that whatever files you have selected in step 5, those are the files that Word inserts in your document.

A variation on this approach involves the use of Windows. Follow these general steps:

  1. Place the insertion point at the place in the document where you want the graphics inserted.
  2. Minimize the Word document.
  3. In Windows, display the folder where the images are located.
  4. Build a selection set of the images you want inserted in the document.
  5. Click on any single image in the selection set and hold down the mouse button.
  6. Drag the selection set over the top of the document as it appears in the Taskbar. (Don't release the mouse button quite yet.)
  7. Once Windows displays the Word document (which it does after a few seconds), release the mouse button.

At this point, all the images you selected in step 4 are inserted in the Word document, the same as in the earlier method.

If you use either of the foregoing methods, you'll need to resize images and move them around, as necessary, so your document appears the way you desire.

Of course, if you need to insert whole groups of images on a routine basis, then going through these steps can become tiresome after a while. Tedium is often relieved through the use of a macro, and this case is no exception. The following macro can be used to display a dialog box (similar to those used in the earlier methods) where you can select the files you want. When you close the dialog box, any images you selected within the dialog box are inserted in your document, each in its own paragraph.

Sub InsertImages()
    Dim doc As Word.Document
    Dim fd As FileDialog
    Dim vItem As Variant
    Dim mg1 As Range
    Dim mg2 As Range

    Set fd = Application.FileDialog(msoFileDialogFilePicker)
    Set doc = ActiveDocument

    With fd
        .Filters.Add "Images", "*.gif; *.jpg; *.jpeg", 1
        .FilterIndex = 1

        If .Show = -1 Then
            For Each vItem In .SelectedItems
                Set mg2 = ActiveDocument.Range
                mg2.Collapse wdCollapseEnd
                doc.InlineShapes.AddPicture _
                  FileName:=vItem, _
                  LinkToFile:=False, SaveWithDocument:=True, Range:=mg2
                Set mg1 = ActiveDocument.Range
                mg1.Collapse wdCollapseEnd

                mg1.Text = vbCrLF & vbCrLf
            Next vItem
        End If
    End With

    Set fd = Nothing
End Sub

If you don't want to bother with selecting folders or files, you can use an even simpler macro. The following pulls all JPG files from a specified folder and places them in the current document. Each image is in its own paragraph.

Sub GetPictures()
    Dim sPic As String
    Dim sPath As String

    sPath = "c:\myfolder\"
    sPic = Dir(sPath & "*.jpg")

    Do While sPic <> ""
        Selection.InlineShapes.AddPicture _
          FileName:=sPath & sPic, _
          LinkToFile:=False, SaveWithDocument:=True
        sPic = Dir
End Sub

To use the macro, just make sure you change the value assigned to sPath so that it represents the folder you want.


If you would like to know how to use the macros described on this page (or on any other page on the WordTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (10727) applies to Microsoft Word 2007, 2010, 2013, and 2016. You can find a version of this tip for the older menu interface of Word here: Inserting Multiple Graphics in a Document.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...


AutoText Unavailable in Headers and Footers

When you are creating headers and footers for your document, you might want to use some of your AutoText entries. What if ...

Discover More

Aligning Text in WordArt

WordArt provides several ways you can align whatever text you've entered. In this tip you discover the different ...

Discover More

Deleting a File in a Macro

Macros give you a great deal of control over creating, finding, renaming, and deleting files. This tip focuses on this ...

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

More WordTips (ribbon)

Understanding WordArt

One of the small graphical features provided with Word is the ability to apply artistic treatment to words or phrases. ...

Discover More

Unwanted Graph Paper Effect

When you open a document or start to use Word, do you see a background that looks like graph paper? It could be because ...

Discover More

Moving Captions with Pictures

Put a caption with a picture and you'd probably like the two elements to behave like they belong together. If you are ...

Discover More

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 3 - 3?

2021-12-16 17:29:15


Hi, is there a way when you insert multiple pics into a Word file to have each one appear on a separate page vs. all of them overlapping each other and then having to move them? Can't seem to get this to work. Thank you

2020-12-28 09:59:37

Fred Seelig

Is there any way to have Word automatically resize inserted graphics? When I insert jpg's etc, they always come in as either full-size, or the full width of the document (whichever is smaller). Then I have to resize them as three inches wide.

2020-11-10 11:40:36


How would you do it so that each image is put on its own page?

2020-06-11 03:44:36


Can a single image be inserted at one particular point in a word document? For example a jpeg signature at the very end of a word document. Can this be automated for numerous documents?

2020-01-24 05:57:02


Hello, its quite a useful thing. I have some specific requirement I need to upload images side by side on word document routinely . Here i have also attached sample format in which i need to upload image

2019-04-01 09:50:33



2018-08-22 23:23:53


As written the Macro inserts the drawings at the very end of the document.

Is there a way that it will insert the drawings where the cursor is within the document.

Also, the pages that I want them inserted to are Landscape A3 in the document. Will the pictures automatically size for this?.

Any assistance would be greatly appreciated.

2018-06-12 16:33:25

Kim Sorvig

thanks for the macro InsertImages(). It worked perfectly (once I deleted extra SUB and END SUB lines added when creating the macro.
the other macro (getPictures) would not work for me at all. I'd have been fine with the simplicity, byut appreciate the one that worked.

2018-03-07 02:54:05

Ken Endacott

The caption numbering is in the order of the picture anchors. If they are all anchored to the same paragraph then it is in the order they were anchored.

What you should do is:
1. Display the paragraph marks. If necessary add a few.
2. Drag the anchors for the images to different paragraph marks in the order that you want the captions
3. Delete all the captions then re-insert them

2018-03-06 20:19:25

David Rich

I am frustrated! I am working with Word 2016. I need to place 4 pictures on one page with a caption on each picture without other words on the page. Word does okay with the first image, but succeeding images have the caption erroneously. For example, the first image will be number, let's say, 10 (not the first in the document). The second image will be numbered 10 with the first one 11. The third image was numbered 12 with the first and the second still numbered 11 and 10. The caption to the fourth image was numbered 10, the first changed to 12, the second changed to 11, and the third changed to 13. The problem is the anchor for all images are piled on top of each other. Can you help me?

2016-11-20 14:47:31


I do something like this but I do it one by one. Typically I would like to paste about five jpegs in then add captions. Those jpegs come out of analysis software and I would like the last jpeg created to be put in last. Word "likes" to insert based of date saved. so last created goes in first.

While not tedious, if I could paste in a certain order it would not interrupt my train of thought in my analysis software. Could be a big help to come up with an adjustment to this process


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.


FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.