Load Picture based on a combobox value

El Interino

New Member
Joined
Jan 12, 2022
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm having a hard time figuring out how I can load a picture on an image control box based on the value of the combo box.

I want to show a picture of a person according to what's shown on the combo box. The combo box is currently used for another function but I want to use it as well to show the image. Another thing, I have the rowsource on another sheet.

Anything I can do? Your help matters. Thanks!
 
You seem to have two End Sub lines there?

Also, the code would be a lot simpler if you could load the file name into the combobox. Is there really a double dot before the jpg extension?
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
The double is not a problem since the first one is part of the filename. I'm thinking if I can just use a relative combo box that once entered from the first one it will automatically populate on the other. Is this possible?
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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