View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
grime[_14_] grime[_14_] is offline
external usenet poster
 
Posts: 1
Default changing size of autoshape


Trying to do some basic animation with an autoshape. I have a rectangle
that I am changing the size in steps. The problem is, it resizes the
bottom edge of the rectangle up instead of moving the top edge of the
rectangle down.

here is my code:

Code:
--------------------
For j = 1 To 200
rectheight = rectheight - 0.5
ActiveSheet.Shapes("Rectangle 1").Height = rectheight
For i = 1 To 100
DoEvents
Next i
Next j
--------------------


How do I tell VBA to resize my rectangle from the bottom up?


--
grime
------------------------------------------------------------------------
grime's Profile: http://www.excelforum.com/member.php...o&userid=19227
View this thread: http://www.excelforum.com/showthread...hreadid=504923