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
 

Some videos you may like

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
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")
 

Watch MrExcel Video

Forum statistics

Threads
1,108,787
Messages
5,524,877
Members
409,609
Latest member
Channingz

This Week's Hot Topics

Top