Written by Allen Wyatt (last updated October 1, 2022)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, 2021, and Word in Microsoft 365
If you work with graphics quite a bit, you are probably already familiar with the term "thumbnails." These are smaller versions of your graphics, printed on a single page, that allow you to get a "birds-eye view" of all your graphics. Many graphics programs and desktop publishing programs include a thumbnail feature that allows you to automatically print your overview. Unfortunately, Word does not include this feature, but you can add such a feature with a macro. The following VBA macro creates a set of thumbnail images from the contents of a single directory:
Sub Thumbnails() Dim Directory As String Dim FType As String Dim FName As String Dim ColCount As Integer, J As Integer Directory = "d:\temp" FType = "*.jpg" ChDir Directory FName = Dir(FType) If FName <> "" Then Documents.Add ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=1, _ NumColumns:=5 Selection.Tables(1).Select Selection.Cells.HeightRule = wdRowHeightAuto With Selection.Rows .Alignment = wdAlignRowCenter .AllowBreakAcrossPages = False .SetLeftIndent LeftIndent:=InchesToPoints(0), RulerStyle:= _ wdAdjustNone End With Selection.HomeKey Unit:=wdLine ColCount = 1 End If Do While FName <> "" Selection.InlineShapes.AddPicture FileName:=FName, _ LinkToFile:=False, SaveWithDocument:=True Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter Selection.TypeParagraph With Selection.Font .Name = "Arial" .Size = 10 .Bold = True End With Selection.TypeText Text:=Mid$(FName, Len(Directory) + 2) Selection.MoveRight Unit:=wdCharacter, Count:=1 ColCount = ColCount + 1 If ColCount = 6 Then Selection.InsertRows 1 Selection.EndKey Unit:=wdLine Selection.MoveRight Unit:=wdCharacter, Count:=1 Selection.InsertRows 1 Selection.HomeKey Unit:=wdLine ColCount = 1 End If FName = Dir Loop End Sub
In this macro, all you need to do is change the line specifying the Directory variable to reflect the directory in which your graphics are stored. You can also change the graphic file specification by changing the assignment of FType (currently it is set to return all JPG files in the directory). When you run this macro, a new document is created, and the macro starts building a table with five columns and however many rows are necessary to print your graphics. The macro will print about 40 or so thumbnails on a piece of paper, depending on the settings you use in your default template.
There is a caveat to using this macro—you should be aware that your document size will grow very, very fast. While the graphics are shown in a small (thumbnail) size in the document, behind the scenes the graphics are maintained at their full size. If you have lots and lots of graphics being processed, then the document size may become unwieldy and you could end up with very sluggish response times from your system.
Note:
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (8023) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, 2021, and Word in Microsoft 365. You can find a version of this tip for the older menu interface of Word here: Printing Graphic Thumbnails.
Do More in Less Time! An easy-to-understand guide to the more advanced features available in the Microsoft 365 version of Word. Enhance the quality of your documents and boost productivity in any field with this in-depth resource. Complete your Word-related tasks more efficiently as you unlock lesser-known tools and learn to quickly access the features you need. Check out Microsoft 365 Word For Professionals For Dummies today!
Do you like to add pictures to your document just by dragging and dropping? What are you to do if it appears the ...
Discover MoreInsert a graphic into a document and Word allows you to add a shadow behind the graphic. You can also adjust the ...
Discover MoreUsing graphics to add callouts to your graphics is a common occurrence in Word. Here's how to stop all those graphics ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
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.
Visit the WordTips channel on YouTube
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2025 Sharon Parq Associates, Inc.
Comments