Perhaps this non-vba alternative would be suitable:
Assumption: Pictures are stored on Sheet2 to be dynamically shown on Sheet1.
Select Sheet2 and turn off Grid Lines
(ToolsOptionsView tab:Uncheck Grid Lines)
1)For each picture to be displayed:
1a. InsertPicture 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:
InsertNameDefine
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:
InsertNameDefine
Name: 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 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.
Something you can work with?
***********
Regards,
Ron
XL2002, WinXP-Pro
"Dave" wrote:
Yes, thank you.
The spreadsheet contains many images so I'm not sure if this is the solution
to go with. I'll definitely give it a shot.
Thanks again!
"Ron Coderre" wrote:
The VBA solution provided by JE McGimpsey is the generally accepted best
approach:
http://www.mcgimpsey.com/excel/lookuppics.html
Does that help?
***********
Regards,
Ron
XL2002, WinXP-Pro
"Dave" wrote:
I'm wondering if this is possible...
I'm setting up a worksheet that uses a vlookup function to change a
particular value. That all works like a charm. The values all represent a
particular product, I would like the product image to change when the vlookup
is ran. I have all the images on a separate sheet.
Any help would be greatly appreciated.
Thanks!