Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need help with pictures!


I do not know if this is possible, but if someone knows how to do it,
will be grateful.

So the problem is that i want to show a picture when a value i
negative, and another when is positive, can i do it?

Thanks!

--
RSise
-----------------------------------------------------------------------
RSisep's Profile: http://www.excelforum.com/member.php...fo&userid=3574
View this thread: http://www.excelforum.com/showthread.php?threadid=55522

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Need help with pictures!

I would do it like this - Do it in two steps.
First:
You need to place some code in the worksheet or workbook excel object
to evaluate the cell you're looking at each time it calculates. Like
this:
Private Sub Worksheet_Calculate()
If Cells(1, "A") = "blue" Then
TogglePic "ON"
Else
TogglePic "OFF"
End If
End Sub

This will evaluate then toggle the pic on or off via the following
code:

Sub TogglePic(OnOff As String)
On Error Resume Next

If OnOff = "ON" Then Sheets("Sheet3").Shapes("Picture 1").Visible =
True
If OnOff = "OFF" Then Sheets("Sheet3").Shapes("Picture 1").Visible
= False

End Sub

Regards,
Jamie

RSisep wrote:
I do not know if this is possible, but if someone knows how to do it, i
will be grateful.

So the problem is that i want to show a picture when a value is
negative, and another when is positive, can i do it?

Thanks!!


--
RSisep
------------------------------------------------------------------------
RSisep's Profile: http://www.excelforum.com/member.php...o&userid=35741
View this thread: http://www.excelforum.com/showthread...hreadid=555223


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need help with pictures!


Thanks jseven!


--
RSisep
------------------------------------------------------------------------
RSisep's Profile: http://www.excelforum.com/member.php...o&userid=35741
View this thread: http://www.excelforum.com/showthread...hreadid=555223

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
pictures of raismisuaween[_2_] Setting up and Configuration of Excel 0 March 8th 10 10:54 PM
How do you export pictures from my pictures file into a word docu Becky New Users to Excel 1 November 20th 09 07:02 PM
Storing Clip Art pictures in My Pictures folder jfg Excel Discussion (Misc queries) 4 August 10th 07 06:12 AM
Excel's Compress Pictures or deleting pictures doesn't seem work guidod Excel Discussion (Misc queries) 1 January 29th 06 06:51 AM
pictures sausepan Excel Programming 0 September 8th 04 04:20 AM


All times are GMT +1. The time now is 08:58 AM.

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"