+ Reply to Thread
Results 1 to 3 of 3

How can look up an image in one workbook but different worksheets? VLOOKUP or VBA?

  1. #1
    Registered User
    Join Date
    04-16-2015
    Location
    Scotland
    MS-Off Ver
    2007
    Posts
    40

    Exclamation How can look up an image in one workbook but different worksheets? VLOOKUP or VBA?

    There are three worksheets in one workbook; Home | Display | HouseTypes

    Home- this has a Data Validated cell that allows the user to select a house type from the drop down list.
    Display - this is the area where the user should be able to see the image of the selection they have made in "Home".
    HousetYPES- this is where a table containing the house type names and their respective images are stored, the cells where the pictures are in are already named based on the left column house type names.

    [PROBLEM] - I would like to be able to select a house type in the Home tab and then based on the selection I have made the image associated with that house type appears in the Display area. I have tried to follow most instructions on the internet in order to try and come up with a formula that isnt VBA. I tried using the the INDIRECT FORMULA :

    =INDIRECT(VLOOKUP(D!$G$3,HouseTypes!$A$2:$B$10,2,0)) ----- sadly this isnt working or rather returning an image and when it does return something it is usually just a zero.

    Please anyone helpit seems there is something I am missing or doing wrong and i guess my excel knowledge in vba is not that great.
    Attached Files Attached Files
    Last edited by QuintonMcCloud; 11-24-2015 at 05:50 AM.

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: How can look up an image in one workbook but different worksheets? VLOOKUP or VBA?

    Hello
    You can use formulas to lookup images, see the attached example. I've created three named ranges: House_Type; Images and Image. The latter is based on the formula shown and works with the data validation selection. Copy one of the image cells ( the cell not the image) and 'Paste Special >image link' to the place required, then while selected, in the formula bar type =Image (or whatever name assigned) and hit enter. That should link those cells with the image to the data validation selection.

    The only drawback with this technique is that the sizing and arranging of the images needs to be experimented with in order for them to display consistently. But with a bit of work it can be done, much depends on the quality of the image whether it scales up well or not.

    Hope it helps.
    DBY
    Attached Files Attached Files
    Last edited by DBY; 11-13-2015 at 11:48 AM. Reason: Attachment

  3. #3
    Registered User
    Join Date
    04-16-2015
    Location
    Scotland
    MS-Off Ver
    2007
    Posts
    40

    Re: How can look up an image in one workbook but different worksheets? VLOOKUP or VBA?

    HI DBY

    Thank you very much for getting back to me that really really did help thank you very much. Apologies for getting back to you in time doh!

+ 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. Making a vlookup search across multiple worksheets in a workbook
    By juliettelam in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-17-2014, 11:43 AM
  3. 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
  4. Applying Copied Image to All Worksheets in Workbook.
    By Berdman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-24-2012, 09:41 PM
  5. Replies: 5
    Last Post: 12-17-2010, 06:17 PM
  6. Replies: 1
    Last Post: 04-22-2009, 08:07 AM
  7. Can vlookup or hlookup look to other worksheets within a workbook.
    By flgc54 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-11-2005, 09:06 PM

Tags for this Thread

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