Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All
I was wondering if you can reset a shapes top & left position after it is rotated to reflect its new position? Thanks in Advance Jason |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What do you mean by "reset"? Exactly what are you attempting to do?
-- Rick (MVP - Excel) "Jason Zischke" wrote in message ... Hi All I was wondering if you can reset a shapes top & left position after it is rotated to reflect its new position? Thanks in Advance Jason |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Rick
What I mean is for example I place a rectangle on a worksheet then rotate it 90 degrees, its left & top position still talks to the position it was before it rotates. Is there a way to change the property. Thanks Jason "Rick Rothstein" wrote: What do you mean by "reset"? Exactly what are you attempting to do? -- Rick (MVP - Excel) "Jason Zischke" wrote in message ... Hi All I was wondering if you can reset a shapes top & left position after it is rotated to reflect its new position? Thanks in Advance Jason |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Jason,
Is the following what you are after. With ActiveSheet.Shapes("Rectangle 1") .IncrementLeft 10 .IncrementTop 10 .IncrementRotation 30 End With Note that negative values are used to move up or left and rotate counter-clockwise positive values for the other directions. -- Regards, OssieMac "Jason Zischke" wrote: Hi Rick What I mean is for example I place a rectangle on a worksheet then rotate it 90 degrees, its left & top position still talks to the position it was before it rotates. Is there a way to change the property. Thanks Jason "Rick Rothstein" wrote: What do you mean by "reset"? Exactly what are you attempting to do? -- Rick (MVP - Excel) "Jason Zischke" wrote in message ... Hi All I was wondering if you can reset a shapes top & left position after it is rotated to reflect its new position? Thanks in Advance Jason |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi OssieMac
Thanks for your quick responce. Unfortunately that isn't what I'm looking for. I want to be able to talk to the new left and top position of a shape after it has been rotated rather then the left and top position before it was rotated? Thanks Jason "OssieMac" wrote: Hi Jason, Is the following what you are after. With ActiveSheet.Shapes("Rectangle 1") .IncrementLeft 10 .IncrementTop 10 .IncrementRotation 30 End With Note that negative values are used to move up or left and rotate counter-clockwise positive values for the other directions. -- Regards, OssieMac "Jason Zischke" wrote: Hi Rick What I mean is for example I place a rectangle on a worksheet then rotate it 90 degrees, its left & top position still talks to the position it was before it rotates. Is there a way to change the property. Thanks Jason "Rick Rothstein" wrote: What do you mean by "reset"? Exactly what are you attempting to do? -- Rick (MVP - Excel) "Jason Zischke" wrote in message ... Hi All I was wondering if you can reset a shapes top & left position after it is rotated to reflect its new position? Thanks in Advance Jason |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel rotates a shape around the center of the shape. It is simple to put
the upper left corner of the shape back to its original position by saving the old top and left properties before you rotate and then putting the upper left corner back to its original position With ActiveSheet.Shapes("Rectangle 1") oldleft = .Left oldtop = .Top .Rotation = 25 .Left = oldleft .Top = oldtop End With "Jason Zischke" wrote: Hi OssieMac Thanks for your quick responce. Unfortunately that isn't what I'm looking for. I want to be able to talk to the new left and top position of a shape after it has been rotated rather then the left and top position before it was rotated? Thanks Jason "OssieMac" wrote: Hi Jason, Is the following what you are after. With ActiveSheet.Shapes("Rectangle 1") .IncrementLeft 10 .IncrementTop 10 .IncrementRotation 30 End With Note that negative values are used to move up or left and rotate counter-clockwise positive values for the other directions. -- Regards, OssieMac "Jason Zischke" wrote: Hi Rick What I mean is for example I place a rectangle on a worksheet then rotate it 90 degrees, its left & top position still talks to the position it was before it rotates. Is there a way to change the property. Thanks Jason "Rick Rothstein" wrote: What do you mean by "reset"? Exactly what are you attempting to do? -- Rick (MVP - Excel) "Jason Zischke" wrote in message ... Hi All I was wondering if you can reset a shapes top & left position after it is rotated to reflect its new position? Thanks in Advance Jason |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I reset the default cell alignment format to Left-Top? | Excel Discussion (Misc queries) | |||
How do you reset the position that pressing CTRL-END moves you to? | Excel Discussion (Misc queries) | |||
Position of X-Axis (Top, Left) | Excel Programming | |||
change sheet position right to left | Excel Discussion (Misc queries) | |||
Position A2 at top-left of window | Excel Programming |