close

I am trying to link a picture to a particular cell using Microsoft Excel. My
ultimate goal is to us a quot;VLOOKUPquot; comand to pull up whatever picute is
referenced in the VLOOKUP command. So far I can't find a way to accept the
object in the cell reference.

For a VBA solution:
www.mcgimpsey.com/excel/lookuppics.html

For a non-VBA solution:
Assumption: Pictures are stored on Sheet2 to be dynamically shown on Sheet1.

Select Sheet2 and turn off Grid Lines
(Toolsgt;Optionsgt;View tab:Uncheck Grid Lines)
1)For each picture to be displayed:
1a. Insertgt;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 quot;picquot; followed by the
dropdown list text:
Example for a picture of an Elephant:
Insertgt;Namegt;Define
Name: 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:
Insertgt;Namegt;Define
Name: ShowMyPic
RefersTo: =INDIRECT(quot;picquot;amp;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 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.

Each time you select a different item in the list, the associated picture
will appear in the picture box and resize appropriately.Does that help?

***********
Regards,
Ron

XL2002, WinXP-Proquot;scottykaminski17quot; wrote:

gt; I am trying to link a picture to a particular cell using Microsoft Excel. My
gt; ultimate goal is to us a quot;VLOOKUPquot; comand to pull up whatever picute is
gt; referenced in the VLOOKUP command. So far I can't find a way to accept the
gt; object in the cell reference.

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()