VBA Code for Image lookup to filepath

melmur2028

New Member
Joined
Nov 19, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I am trying to build out a VBA code that leverages unique codes - this document needs to accomodate up to 500 unique codes
I have these unique codes running the length of rows 8, 30, 52, 74, 96, 118, 140 -- columns F to DA
id like to pull in specific images (whose file names match back to these codes) to populate the cell +2 directly above
i.e Unique code listed in Cell F8, looking to input image into cell F5, unique code listed in N30 looking to input image into cell N27 ETC
everything i have been able to find has only returned solutions using drop downs or index match
Alternatives only provide code to input an image directly to the right of the cell for one or 2 images only
Ideally i would also be able to apply the same macro to multiple sheets within my document
Appreciate any help or direction!!!!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,214,376
Messages
6,119,175
Members
448,870
Latest member
max_pedreira

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