manipulating objects

A

ashburn

I need help to manipulate a rectangle I drew from
autoshape: If F6=20 then rect in C8 tilt 20 deg.
If F6=-20 then rect tilt -20 deg. Any help in this area
would be greatly appreciated.
Thanks in advance.
 
B

Bernie Deitrick

Ashburn,

Replace the Rectangle 1 with the name of the object that you want to rotate,
and the Sheet1 with the sheet name:

Sub RotateRectangle()
Worksheets("Sheet1").Shapes("Rectangle 1").Rotation = Range("F6").Value
End Sub

HTH,
Bernie
MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top