Good day!
Just wan to ask if it is possible to vlookup value on text box and display the image on image1.picture?
Here is work book:Please Login or Register to view this content.
VlookUp picture.xlsm
Thanks in advance.
Good day!
Just wan to ask if it is possible to vlookup value on text box and display the image on image1.picture?
Here is work book:Please Login or Register to view this content.
VlookUp picture.xlsm
Thanks in advance.
What exactly are you looking up?
Is if the path and filename of the image?
If posting code please use code tags, see here.
Hello Norie,
Thanks for the response.
i Just want to display the image of the lookup value on userform.
Is it possible?
Sorry i forgot to open empLog form
Please Login or Register to view this content.
Last edited by Ryan_Bernal; 11-26-2013 at 08:54 AM.
But what will the lookup actually return?
It can't return an image.
the lookup value should rturn an image on userform.
For example.
Code Fullname Department Designation Photo
IN129 A B C IMAGE.JPG
if i enter the Employee Code (IN129), employee name should appear on txtEmp (A) and IMAGE.JPG should appear on image (photo)
empLog form.JPG
Is there any solution for this?
So the VLOOKUP returns the name of the image file.
Do you have the path to the image file(s)
If you did you could use LoadPicture
Please Login or Register to view this content.
Hello Norie,
Wwaht do you by "Path to the image file?
I put all the photos to C:\Users\Ryan\Desktop\Images
and i place that on my worksheets using insert.
For example:
code Name Photo
IN129 name name.jpg
IN130 name2 name2.jpg
This is the path:
C:\Users\Ryan\Desktop\Images
Change the code I posted to reflect that - I've commented where to do that.
Thank you Norie for your response.
Unfortunately, i got an error runtime error 53 "File not found".
I already put the images inside "C:\Users\Ryan\Desktop\Images"
By the way, this is how I inserted the Photos.
Menu tab-->Insert--> Picture and i resize/drag it opposite to given employee (photo column).
Problem Solved!
I changed this code
into thisPlease Login or Register to view this content.
to read the extension filePlease Login or Register to view this content.
So you didn't have the full filename in the cell.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks