Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Marina Limeira
 
Posts: n/a
Default IF with icon or similar

How I show a picture or icon when the value in a cell 50 and other icon or
picture when <= 50 ?

also Ideas?

Marina


  #2   Report Post  
Junior Member
 
Location: Ohio
Posts: 19
Default

I don't know how your getting the number 50.

Iif it is from a formula result, right click on the Worksheet tab View Code: and paste this code in: This assumes there are 2 pictures on the sheet. one named "Pic1" and another named "Pic2". Change these names accordingly, either in the code or the pitures on the sheet. This also assumes that the cell that will have the 50 is cells B1 (Row1,Col2 = Cells(1,2)) change this to the correct cell.


Option Explicit

Private Sub Worksheet_Calculate()
If Cells(1, 2).Value = 50 Then
ActiveSheet.Shapes("Pic1").Visible = True
ActiveSheet.Shapes("Pic2").Visible = False
Else
If Cells(1, 2).Value 50 Then
ActiveSheet.Shapes("Pic1").Visible = False
ActiveSheet.Shapes("Pic2").Visible = True
Else
ActiveSheet.Shapes("Pic1").Visible = False
ActiveSheet.Shapes("Pic2").Visible = False
End If
End If
End Sub
__________________
Justin Labenne
www.jlxl.net

Last edited by JustinLabenne : June 14th 05 at 12:03 AM Reason: Addition
  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

J.E. McGimpsey has a routine you may like:
http://www.mcgimpsey.com/excel/lookuppics.html


Marina Limeira wrote:

How I show a picture or icon when the value in a cell 50 and other icon or
picture when <= 50 ?

also Ideas?

Marina


--

Dave Peterson
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
The merge center icon remains gray and does not work. mrspeaker Excel Discussion (Misc queries) 1 May 13th 05 03:42 AM
currency icon (british pounds) hrh frank Excel Discussion (Misc queries) 6 April 28th 05 10:13 AM
How can I delete similar rows in excel workbook with many sheets? JSchrader Excel Worksheet Functions 1 April 26th 05 06:40 PM
Macors do not run correctly from icon TonyL Excel Discussion (Misc queries) 2 March 15th 05 07:49 AM
Cant add an icon to toolbars Rasoul Khoshravan Azar Excel Discussion (Misc queries) 1 November 28th 04 08:19 PM


All times are GMT +1. The time now is 10:35 PM.

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

About Us

"It's about Microsoft Excel"