How to Insert Multiple Pictures at Once in Excel (2 Easy Ways)

Today we will discuss how to insert multiple pictures in Excel at once. Microsoft Excel is a strong tool for storing, organizing, and manipulating data. Numerous operations can be performed with this software. Just like Microsoft Word or Microsoft PowerPoint, pictures can be organized in Excel as well.

Overview Image


How to Insert Multiple Pictures at Once in Excel: 2 Easy Methods

In this article, we will discuss and demonstrate two useful methods to insert multiple pictures in Excel. We will apply the Insert Picture feature and VBA code to accomplish this task.


Method 1: Using Insert Picture Feature to Insert Multiple Pictures at Once in Excel

This method includes the Insert Picture feature. This is the easiest method to insert a large number of images into the worksheet. To do so, you need to follow the steps below.

Steps:

First, in the worksheet, go to the Insert tab and then click on Pictures.

Using Insert Picture Feature

  • Then, in the dialog box, please look for the folder where pictures are kept. Navigate to the folder and find the pictures. Select multiple pictures by clicking them and holding the Ctrl button.

Selecting Pictures to Insert Multiple Pictures in Excel at Once

  • After selecting the pictures, click the Insert button.

Using Insert Button to Insert Multiple Pictures in Excel at Once

  • Subsequently, all the pictures will be inserted into the worksheet.

Insert Multiple Pictures in Excel at Once in The Worksheet

  • Besides, you may also resize them in an identical shape. Keep these pictures selected, and put Width and Height values in the Picture Format tab.

Using Picture Format Tab to Insert Multiple Pictures in Excel at Once

  • Finally, you can manually move the pictures into separate cells.

Insert Multiple Pictures in Excel at Once Using Insert Picture Feature

Read More: How to Insert Picture in Excel Cell Automatically


Method 2: Applying VBA code to Insert Multiple Pictures at Once in Excel

Additionally, you may use the VBA code to insert multiple pictures at once. We will apply VBA code to insert multiple pictures in discrete cells. Simply, follow the steps below.

Steps:

  • Initially, select the cell where you want your first picture to be (the imported pictures will have the same size as the size of the cells)
  • Secondly, go to the Developer tab and click on Visual Basic and it will open Microsoft Visual Basic for Applications or, press Alt+F11.

Selecting Visual Basic to Enable VBA Macro

  • Then, click on Insert > Module.

Using Insert Module Feature

  • Subsequently, enter the following VBA code and press F5 to run it.
Sub InsertPictures()
Dim myPICLt() As Variant
Dim ImageFormat As String
Dim PicRng As Range
Dim PicShape As Shape
On Error Resume Next
myPICLt = Application.GetOpenFilename(ImageFormat, MultiSelect:=True)
myColInd = Application.ActiveCell.Column
If IsArray(myPICLt) Then
    myRowInd = Application.ActiveCell.Row
    For lLoop = LBound(myPICLt) To UBound(myPICLt)
        Set PicRng = Cells(myRowInd, myColInd)
        Set PicShape = ActiveSheet.Shapes.AddPicture(myPICLt(lLoop), msoFalse, msoCTrue, PicRng.Left, PicRng.Top, PicRng.Width, PicRng.Height)
        myRowInd = myRowInd + 1
    Next
End If
End Sub 
			
VBA Breakdown
  • ‘Define the Variables
Dim myPICLt() As Variant
Dim ImageFormat As String
Dim PicRng As Range
Dim PicShape As Shape
  • ‘Set variable to select multiple pictures from the application
myPICLt = Application.GetOpenFilename(ImageFormat, MultiSelect:=True)
  • ‘Command to activate last used from a column
myColInd = Application.ActiveCell.Column
  • ‘Apply the If condition for a variable with pictures
If IsArray(myPICLt) Then
    myRowInd = Application.ActiveCell.Row
  • ‘Apply For loop to take pictures one by one
For lLoop = LBound(myPICLt) To UBound(myPICLt)
  • ‘Set Range for the pictures
Set PicRng = Cells(myRowInd, myColInd)
  • ‘Set shapes for the pictures
Set PicShape = ActiveSheet.Shapes.AddPicture(myPICLt(lLoop), msoFalse, msoCTrue, PicRng.Left, PicRng.Top, PicRng.Width, PicRng.Height) 

Running the VBA code to Insert Multiple Pictures in Excel at Once

  • Just like Method 1, in the dialog box select the pictures you want to import and click Open.

Clicking the Open Button

  • Finally, the selected pictures will be imported into the worksheet. You can now rearrange the pictures into your preferred cells.

Insert Pictures by Applying the VBA Code

Note: If the Developer tab is not available, then you need to customize it. Go to Files>Options. There you will see Customize Ribbon. Click on it and then select Developer and press OK.

Read More: How to Link Picture to Cell Value in Excel


Download Practice Workbook

Download this practice book to exercise the task while you are reading this article.


Conclusion

In this article, we demonstrated two methods to enter multiple pictures in Excel at once. These methods allow users to insert multiple pictures into Excel more efficiently and effectively.


Related Articles


<< Go Back to Excel Insert Pictures | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Md. Abu Sina Ibne Albaruni
Md. Abu Sina Ibne Albaruni

Md. Abu Sina Ibne Albaruni holds a BSc in Mechanical Engineering from Bangladesh University of Engineering and Technology. He is a dedicated employee of the ExcelDemy project. He has written quite a large number of articles for ExcelDemy. Besides, he has expertise in VBA. He efficiently automates Excel issues using VBA macros and actively engages in the ExcelDemy forum, offering valuable solutions for user interface challenges. His areas of interest in work and study span MATLAB, Machine Learning,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo