LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default change autoshape by condition from a cell value

Hi all,

I am trying to change in a help file an autoshape based on the value of
a cell.
If the cell say H19 is positive then I need a triangle suggesting a
descent, if is negative
I need a triangle which is suggesting a rise.

I try to use the following code to see how it works:

Sub Worksheet_Change(ByVal Target As Range)

If Target.Address = "$H$19" And Target = 0 Then
ActiveSheet.Shapes("AutoShape 48").Visible = True
Else
ActiveSheet.Shapes("AutoShape 48").Visible = False
End If
End Sub

The only problem is that my triangle (AutoShape 48) once disappear will
not came back when the condition changes.

I have very limited experience in programming and I would appreciate
any help.

emil

 
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
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
How to change the value of a cell when a condition is satisfied, but not otherwise? benzi_k_ahamed Excel Discussion (Misc queries) 0 January 11th 06 11:31 AM
I Need a formula to evaluate a cell with + or - values Bob in Oklahoma Excel Worksheet Functions 6 October 31st 05 02:41 PM
Cell Change Color - Need Help alani New Users to Excel 3 June 29th 05 03:50 PM
Cell references change when entering new data [email protected] New Users to Excel 2 May 6th 05 07:48 PM


All times are GMT +1. The time now is 12:43 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"