How to add multiple image to describe for each item (row) in excel.

quocthai

New Member
Joined
Sep 17, 2023
Messages
1
Office Version
  1. 2021
Platform
  1. Windows
Hello everyone,
I have a file list of items (like images). I want to add an image to describe each item in the file.
Please advise and guide me on what i have to do.

Some ideas:
1.Take actual photos -> add all photos at once -> refer back to the location of the photo to match the item description.
2. Upload photos into online platform (like onedrive0 -> use image or QR function to upload photos.

I would like to say more about that purpose: There are some items that after reading the description, I still can't remember what it is. So if there is a photo to remind me, it will be much more convenient.
1695002056635.png
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Where are the images stored?
Are the corresponding names equivalent to the Values in Column A?
How big do these images need to be? Fit in a cell?
 
Upvote 0
In following example, the picture names including extension are in Column B starting at the 2nd Row.
Pictures will be placed in Column C and sized to the cell.
Change references as required.
Code:
Sub InsertPictures()
Dim sFolder As String
Dim sFile As String
Dim i As Long
Dim w As Worksheet
sFolder = "C:\Equipment Pictures\"    '<----- Where the pictures are. Change as needed
Set w = ActiveSheet ' or a specific sheet
For i = 2 To Cells(Rows.Count, 2).End(xlUp).Row
    sFile = Dir(sFolder & Cells(i, 2).Value)
        w.Shapes.AddPicture Filename:=sFolder & sFile, _
            LinktoFile:=False, SaveWithDocument:=True, _
            Left:=Cells(i, 3).Left, Top:=Cells(i, 3).Top, _
            Width:=Cells(i, 3).Width, Height:=Rows(i).Height
Next i
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,124
Messages
6,123,189
Members
449,090
Latest member
bes000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top