Excel- displaying linked images based on filepath

pandzio

New Member
Joined
Sep 25, 2017
Messages
1
I need to have Excel display images based on the file paths from another column. In a certain way:
column G shows the name of the folder
column H
shows the name of the file(usually: 00, 01, 02, ...)
column I specifies the filetype ONLY if it is different from .jpg

The image should appear in column B in this way:
1. Glue the path from the columns G+H and add .jpg or take file name from column I
2. Link it (not paste!) into the cell, first making sure the hight is less than 350
3. Then making it less than 30 in width (the column will be slightly wider than 30)
4. Make the cell have the height not smaller than the height of a such-resized image. Often other columns will have a lot of text and therefore should not be resized, to keep the automatic height working on. This way the image is kept within the cell boundaries.
5. Center the image inside the cell
6. Lock the images inside the cells, so they move and resize with the cell (that is not moving around or stretching when the spreadsheet is filtered or sorted, or columns or rows are added)

I've found similar questions and the use of VBA, but I'm not smart enough to customize them.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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