Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
man57
 
Posts: n/a
Default How can you draw a shape when the values change each time??


  #2   Report Post  
Posted to microsoft.public.excel.newusers
Ardus Petus
 
Posts: n/a
Default How can you draw a shape when the values change each time??

See example with worksheet Change event proc: http://cjoint.com/?erkFfzkxwN

HTH
--
AP

'--------------
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect( _
Target, _
Union( _
Range("Center_X"), _
Range("Center_Y"), _
Range("Radius") _
) _
) Is Nothing Then Exit Sub
With Me.Shapes("Circle1")
.Top = Range("Center_Y").Value - Range("Radius").Value
.Left = Range("Center_X").Value - Range("Radius").Value
.Height = 2 * Range("Radius").Value
.Width = .Height
End With
End Sub
'---------------
"man57" a écrit dans le message de
...



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
Can a formula change a cells colour after a given length of time? Clive Humphries Excel Worksheet Functions 1 February 20th 06 11:23 PM
Fun with Time values wisperc Excel Discussion (Misc queries) 1 January 5th 06 03:51 AM
can excel draw a shape based on values entered in cells Milo Excel Worksheet Functions 1 April 6th 05 01:36 AM
Time Stamp without change AntonyY Excel Discussion (Misc queries) 3 November 26th 04 10:13 AM
Time Stamp-With Change AntonyY Excel Discussion (Misc queries) 1 November 26th 04 12:38 AM


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