Open image in the userform based upon the condition

krishnaa_kumarr88

New Member
Joined
Sep 30, 2014
Messages
33
Hi,
Does any one knows how to show the image in the right hand side of the userform based upon the condition.
Say example,
i have userform with following list
1. Name (combobox)
2. Age (will come automatically based upon the name selection)
3. Occupation (will show automatically based upon the name selection)
I would like to create a picture box in the right hand side of the userform which shows the image for the respective name. ( i have more than 30 names).
Please help me guys,
Thanks
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Where are the images and how do their names relate to the ComboBox selection? To load an image into an Image control you use the LoadPicture method eg:

Code:
Image1.Picture = LoadPicture("Enter the path to the image here")
 
Upvote 0

Forum statistics

Threads
1,214,577
Messages
6,120,359
Members
448,956
Latest member
Adamsxl

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