Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 504
Default Changing a Picture or Object if a Cell equals a certain value

Hi I wonder if someone can help me, I have 3 pictures which are like a "rev
counter" which represent the performance of my team. So if there performance
is low then the picture would indicate a a low performance and high would be
high and so on. I have 3 picture low, medium & high. How do get the picture
to change if a cell equals a certain value and is excel the best tool to do
this. I am trying to use excel since all the raw data is in excel format.

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Changing a Picture or Object if a Cell equals a certain value

One way if they are truly blank, select the range, press F5, select special,
select blanks, press OK. Do editdelete or press ctrl + -, select entire row
and press OK

regards,

Peo Sjoblom


"Kevin" wrote in message
...
Hi I wonder if someone can help me, I have 3 pictures which are like a
"rev
counter" which represent the performance of my team. So if there
performance
is low then the picture would indicate a a low performance and high would
be
high and so on. I have 3 picture low, medium & high. How do get the
picture
to change if a cell equals a certain value and is excel the best tool to
do
this. I am trying to use excel since all the raw data is in excel format.

Thanks




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Changing a Picture or Object if a Cell equals a certain value

I Apologize, wrong post answered

Peo Sjoblom


"Peo Sjoblom" wrote in message
...
One way if they are truly blank, select the range, press F5, select
special, select blanks, press OK. Do editdelete or press ctrl + -, select
entire row and press OK

regards,

Peo Sjoblom


"Kevin" wrote in message
...
Hi I wonder if someone can help me, I have 3 pictures which are like a
"rev
counter" which represent the performance of my team. So if there
performance
is low then the picture would indicate a a low performance and high would
be
high and so on. I have 3 picture low, medium & high. How do get the
picture
to change if a cell equals a certain value and is excel the best tool to
do
this. I am trying to use excel since all the raw data is in excel format.

Thanks






  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default Changing a Picture or Object if a Cell equals a certain value

The VBA solution provided by JE McGimpsey is the generally accepted best
approach:
http://www.mcgimpsey.com/excel/lookuppics.html

This is just an alternative non-VBA solution, in case you don't want to use
programming:

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 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.

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

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Kevin" wrote:

Hi I wonder if someone can help me, I have 3 pictures which are like a "rev
counter" which represent the performance of my team. So if there performance
is low then the picture would indicate a a low performance and high would be
high and so on. I have 3 picture low, medium & high. How do get the picture
to change if a cell equals a certain value and is excel the best tool to do
this. I am trying to use excel since all the raw data is in excel format.

Thanks


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Changing a Picture or Object if a Cell equals a certain value

You can use a wroksheet change function like the one below. I put the 3
picture on top of each other. Then by entering 1, 2, or 3 in cell A1 a
different picture moved to the front.

Sub worksheet_change(ByVal Target As Range)

If Target.Row = 1 And Target.Column = 1 Then

Select Case Target.Value

Case 1
Shapes("Picture 1").ZOrder msoBringToFront
Case 2
Shapes("Picture 2").ZOrder msoBringToFront

Case 3
Shapes("Picture 3").ZOrder msoBringToFront

End Select

End If

End Sub


"Kevin" wrote:

Hi I wonder if someone can help me, I have 3 pictures which are like a "rev
counter" which represent the performance of my team. So if there performance
is low then the picture would indicate a a low performance and high would be
high and so on. I have 3 picture low, medium & high. How do get the picture
to change if a cell equals a certain value and is excel the best tool to do
this. I am trying to use excel since all the raw data is in excel format.

Thanks




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 504
Default Changing a Picture or Object if a Cell equals a certain value

Hi Ron

I will try this over the weekend thanks seems to make sense I will let you
know how it turns out

Kev

"Ron Coderre" wrote:

The VBA solution provided by JE McGimpsey is the generally accepted best
approach:
http://www.mcgimpsey.com/excel/lookuppics.html

This is just an alternative non-VBA solution, in case you don't want to use
programming:

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 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.

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

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Kevin" wrote:

Hi I wonder if someone can help me, I have 3 pictures which are like a "rev
counter" which represent the performance of my team. So if there performance
is low then the picture would indicate a a low performance and high would be
high and so on. I have 3 picture low, medium & high. How do get the picture
to change if a cell equals a certain value and is excel the best tool to do
this. I am trying to use excel since all the raw data is in excel format.

Thanks


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell value becomes filepath to insert picture,jpg or object Rookie_User Excel Worksheet Functions 0 February 6th 07 04:32 PM
Object vs Picture Handling in Different Versions of Excel Rif Excel Discussion (Misc queries) 0 October 9th 05 08:43 AM
Converting hyperlink picture object to hyerlink text [email protected] Excel Discussion (Misc queries) 0 October 4th 05 09:53 AM
Creating a picture/object David Rivera Excel Discussion (Misc queries) 1 July 16th 05 12:35 AM
custom filter does not work when selecting 'equals' X AND 'equals' plindman Excel Discussion (Misc queries) 1 June 1st 05 11:29 PM


All times are GMT +1. The time now is 05:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"