+ Reply to Thread
Results 1 to 3 of 3

linking pictures to a drop down list then changing

  1. #1
    Registered User
    Join Date
    03-27-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    4

    linking pictures to a drop down list then changing

    I was able to create the link pictures to a drop down list following the Ron's instructions

    Select Sheet2 and turn off Grid Lines
    ...<Tools>Options><View tab>Uncheck: Grid Lines

    1)For each picture to be displayed:
    1a. <Insert><Picture from file> (select picture and put it in the sheet).
    1b. Select the range of cells that contains the picture.
    1c. Name that range of cells, using the prefix "pic" followed by the dropdown list text:
    Example for a picture of an Elephant:
    <Insert><Name><Define>
    Names in Workbook: picElephant

    2)Build your data validation list on a cell in Sheet1 and pick one of the items.

    3)Create a dynamic range name that refers to that cell:
    <Insert><Name><Define>
    Names in Workbook: ShowMyPic
    RefersTo: =INDIRECT("pic"&Sheet1!$A$1)
    ...or whatever cell you chose.

    4)Copy/Paste one of the pictures from Sheet2 to the display cell on Sheet1.

    5)With the picture selected, type this in the formula bar, then press [Enter]:
    =ShowMyPic

    The picture will be replaced by the picture referred to by the dropdown list.


    However, when I went back into the file to added new pic[name], the ShowMyPic does not bring in the new images.

    The range names for all the new images match the originals so I don't understand why the new images are not captured. Is there an additional step required when modifying the original pictures in Sheet2?

    Thank you
    Last edited by philips_cody; 03-29-2012 at 02:24 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: linking pictures to a drop down list then changing

    I just tried it following the directions you posted and it updated fine.
    1. The name must have no spaces
    2. is your data validation list dynamic and includes the new name
    3. Did you name the range in sheet 2 exactly the same as the data validation list (i.e. picpenguins versus penguin)?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    03-27-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: linking pictures to a drop down list then changing

    It was the data validation names.. I had them slightly different. Made the change and it's working!

    Thank you for highlighting this easy issues

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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