+ Reply to Thread
Results 1 to 11 of 11

VlookUp Image on Userform

  1. #1
    Registered User
    Join Date
    12-19-2012
    Location
    uae
    MS-Off Ver
    Excel 2003
    Posts
    26

    VlookUp Image on Userform

    Good day!
    Just wan to ask if it is possible to vlookup value on text box and display the image on image1.picture?

    Please Login or Register  to view this content.
    Here is work book:
    VlookUp picture.xlsm

    Thanks in advance.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: VlookUp Image on Userform

    What exactly are you looking up?

    Is if the path and filename of the image?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    12-19-2012
    Location
    uae
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: VlookUp Image on Userform

    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.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: VlookUp Image on Userform

    But what will the lookup actually return?

    It can't return an image.

  5. #5
    Registered User
    Join Date
    12-19-2012
    Location
    uae
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: VlookUp Image on Userform

    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?

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: VlookUp Image on Userform

    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.

  7. #7
    Registered User
    Join Date
    12-19-2012
    Location
    uae
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: VlookUp Image on Userform

    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

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: VlookUp Image on Userform

    This is the path:

    C:\Users\Ryan\Desktop\Images

    Change the code I posted to reflect that - I've commented where to do that.

  9. #9
    Registered User
    Join Date
    12-19-2012
    Location
    uae
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: VlookUp Image on Userform

    Quote Originally Posted by Norie View Post
    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).

  10. #10
    Registered User
    Join Date
    12-19-2012
    Location
    uae
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: VlookUp Image on Userform

    Problem Solved!
    I changed this code
    Please Login or Register  to view this content.
    into this
    Please Login or Register  to view this content.
    to read the extension file

  11. #11
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: VlookUp Image on Userform

    So you didn't have the full filename in the cell.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Vlookup into an image folder and importing the image into the spreadsheet?
    By talan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-30-2017, 12:54 PM
  2. Excel 2010 "vlookup pictures vba" links image instead of saving it as an image
    By neverdom in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-28-2013, 04:17 AM
  3. Check if userform has an image
    By agentone in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2012, 11:38 AM
  4. [SOLVED] best image on a userform
    By obsessive in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-04-2006, 05:30 PM
  5. Userform Image
    By Jennifer in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-24-2006, 03:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1