Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
sbhogle
 
Posts: n/a
Default Conditional display of a .jpeg file?

Here's the question: Is it possible to have Excel display a .jpeg or .gif
image based on a conditional value in a cell?

Example: If A1=5 then display abc.jpeg if not, display nothing.

Here's the application: My end users copy and paste from a "green screen"
to Excel. Excel manipulates the data and creates a sheet that can be printed
out and reviewed with our clients. In this case, the "green screen" has an
indicator to designate whether our client is a Five Star Dealer or not.

I know that I can reference a cell to display "Five Star Dealer" but it
would much cooler if I could use the Five Star logo.

Even better, is there a way to change the formatting of a line chart to
conditionally insert the Five Star logo?

Thanks in advance for any help/suggestions that may be offered.


SBH
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

You'll have to use VBA to do this. You may be able to adapt the
technique here

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

Perhaps something like:


Private Sub Worksheet_Calculate()
Me.Pictures.Visible = False
With Range("A1")
If IsNumeric(.Value) Then _
Me.Pictures("abc").Visible = .Value = 5
End With
End Sub





In article ,
"sbhogle" wrote:

Here's the question: Is it possible to have Excel display a .jpeg or .gif
image based on a conditional value in a cell?

Example: If A1=5 then display abc.jpeg if not, display nothing.

Here's the application: My end users copy and paste from a "green screen"
to Excel. Excel manipulates the data and creates a sheet that can be printed
out and reviewed with our clients. In this case, the "green screen" has an
indicator to designate whether our client is a Five Star Dealer or not.

I know that I can reference a cell to display "Five Star Dealer" but it
would much cooler if I could use the Five Star logo.

Even better, is there a way to change the formatting of a line chart to
conditionally insert the Five Star logo?

Thanks in advance for any help/suggestions that may be offered.

  #3   Report Post  
sbhogle
 
Posts: n/a
Default

Thanks for the help.....

I don't know much about Visual Basic, but I've always wanted to learn more -
maybe now's the time.

Thanks again for the help and have a great week.


SBH

"JE McGimpsey" wrote:

You'll have to use VBA to do this. You may be able to adapt the
technique here

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

Perhaps something like:


Private Sub Worksheet_Calculate()
Me.Pictures.Visible = False
With Range("A1")
If IsNumeric(.Value) Then _
Me.Pictures("abc").Visible = .Value = 5
End With
End Sub





In article ,
"sbhogle" wrote:

Here's the question: Is it possible to have Excel display a .jpeg or .gif
image based on a conditional value in a cell?

Example: If A1=5 then display abc.jpeg if not, display nothing.

Here's the application: My end users copy and paste from a "green screen"
to Excel. Excel manipulates the data and creates a sheet that can be printed
out and reviewed with our clients. In this case, the "green screen" has an
indicator to designate whether our client is a Five Star Dealer or not.

I know that I can reference a cell to display "Five Star Dealer" but it
would much cooler if I could use the Five Star logo.

Even better, is there a way to change the formatting of a line chart to
conditionally insert the Five Star logo?

Thanks in advance for any help/suggestions that may be offered.


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
Problem with xlusrgal.xls file Alfred S C Lee Charts and Charting in Excel 2 December 29th 04 05:54 PM
File asks to update when no links were created Dave Links and Linking in Excel 1 December 16th 04 08:10 PM
Getting a file and Saving a File carl0s66 Excel Discussion (Misc queries) 2 November 29th 04 09:59 PM
How to remove an Excel Main Menu item inserted by .xla file Dennis Excel Discussion (Misc queries) 5 November 28th 04 08:39 PM
Adding more than three Conditions to 'Conditional Formatting' David McRitchie Excel Discussion (Misc queries) 1 November 27th 04 06:03 PM


All times are GMT +1. The time now is 12:41 PM.

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"