View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jim Jim is offline
external usenet poster
 
Posts: 615
Default Change Picture based on cell value

Sorry for the double post, but I put my question as a reply to an old post
and I'm concerned it will not be answered. Below is my question from a post
from last May.

I'm trying to change a picture based on the selection of a cell in a drop
down list.

Gord,

I've the John McGimpsey method. I've downloaded his sample sheet, played
with it, added more photos and names in the range and everything works.

However when I copy the exact source code (changed the range to the cell
where I want the photo) over to the sheet I need this function to work, it
does not. Instead of displaying the named picture, it displays the picture
name 'Picture 1' in the destination cell.

VBA is over my head, any help?

Thanks much in advance.

JIM

"Gord Dibben" wrote:

Pictures cannot be embedded in a cell and referenced by a formula like =A1

See John McGimpsey's site for one method using Event code, Data Validation
and VLOOKUP formula.

http://www.mcgimpsey.com/excel/lookuppics.html

OR go to Debra Dalgeish's site for a sample workbook from Bernie Dietrick
for adding pictures to selections.

Alows for more than one picture(or same picture multiple times) to be
displayed based upon a value or item chosen from DV lists

http://www.contextures.on.ca/excelfiles.html#DataVal

DV0049 - ClipArt Selection

Edit the code to suit.


Gord Dibben MS Excel MVP