PC Review


Reply
Thread Tools Rate Thread

Display image based on value/status

 
 
Max321
Guest
Posts: n/a
 
      13th May 2009
Hi,

I have a workbook with a "frontpage" containing dials (10 of them) to show
the status of a number of Indicators, i.e. Off Track/Warning/On Track.
I've successfully used the tip on
http://www.mcgimpsey.com/excel/lookuppics.html
to show the correct dial based on value/status in another worksheet, but how
can I change it to be used in several cells in the same worksheet?

The VB part on that page is "hard coded" (as far as I can understand - no VB
expert) to only display the image in 1 specific cell.

Also how would I go about centralizing the image in the cells?

Code used -
--------
Private Sub Worksheet_Calculate()
Dim oPic As Picture
Me.Pictures.Visible = False
With Range("C7") <----------------- Hard coded cell ID.
For Each oPic In Me.Pictures
If oPic.Name = .Text Then
oPic.Visible = True
oPic.Top = .Top
oPic.Left = .Left
Exit For
End If
Next oPic
End With
End Sub
-------

Many Thanks!

- Max



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to display image based on if-condition? Eric Microsoft Excel Misc 2 8th Feb 2010 06:32 AM
Display image based on value/status Max321 Microsoft Excel Programming 0 13th May 2009 04:01 PM
Display an image in a DataGridView based on the value in DB shahoo Microsoft C# .NET 0 17th Aug 2007 12:20 AM
DISPLAY Image Based on Logic =?Utf-8?B?UmF5cG9ydGluZ01vbmtleQ==?= Microsoft Excel Misc 5 25th Jul 2007 05:54 PM
Display Image Based on control in subform Jason Lopez Microsoft Access Forms 0 12th Jul 2007 08:17 PM


Features
 

Advertising
 

Newsgroups
 


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