My bad. I contradicted myself in my post.
As I resize the rectangle, I want the bottom edge to stay in place an
have the top edge move. Your code keeps the top edge aligned
My mistake in reading.
ltop = ActiveSheet.shapes("Rectangle 1").Top
For j = 1 To 200
rectheight = rectheight - 0.5
ltop = ltop - 0.5
Application.ScreenUpdating = False
ActiveSheet.Shapes("Rectangle 1").Height = rectheight
Activesheet.Shapes("Rectangle 1").Top = lTop
Application.ScreenUpdating = True
For i = 1 To 100
DoEvents
Next i
Next j

Signature
Regards,
Tom Ogilvy
> My bad. I contradicted myself in my post.
>
> As I resize the rectangle, I want the bottom edge to stay in place and
> have the top edge move. Your code keeps the top edge aligned.
Tom Ogilvy - 25 Jan 2006 16:06 GMT
whoops, should be incrementing the top
ltop = ActiveSheet.shapes("Rectangle 1").Top
For j = 1 To 200
rectheight = rectheight - 0.5
ltop = ltop + 0.5
Application.ScreenUpdating = False
ActiveSheet.Shapes("Rectangle 1").Height = rectheight
Activesheet.Shapes("Rectangle 1").Top = lTop
Application.ScreenUpdating = True
For i = 1 To 100
DoEvents
Next i
Next j

Signature
Regards,
Tom Ogilvy
> My mistake in reading.
>
[quoted text clipped - 18 lines]
> http://www.excelforum.com/member.php?action=getinfo&userid=19227
> > View this thread: http://www.excelforum.com/showthread.php?threadid=504923
grime - 25 Jan 2006 16:21 GMT
Yer the man, Tom. Thanks a ton.

Signature
grime