Repeat VBA code to run but for another cell

Ramadan

New Member
Joined
Jan 20, 2024
Messages
1
Office Version
  1. 2021
Platform
  1. Windows
Dears please I need your help

i need VBA code to insert 1 or 2 images from folder in my pc based on the cell value, and i have created hyberlink for each image to be a reference for images. my problem is I'm not well oriented with creating VBA codes and i have found on interent a VBA but to insert only one image while i need sometimes to insert 2 images in cell (H43) based on value of (E5) and in cell(L43) baded on the cell value of (G5)

pleae i need your help to make the code repeat again but for the other cells or to be one code for the two processes -thank you
code.png
 
Last edited by a moderator:

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,215,077
Messages
6,122,992
Members
449,094
Latest member
masterms

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