#1
|
|||
|
|||
Reset shape/inlineshape axis after rotation?
Is there a way to set the axis the shape/inlineshape axis after a rotation?
When I "increment rotate" (90º) a shape width and height be inverted. The only way I know is to copy the shape and paste as a new image. Thanks Quote:
__________________
Backup your original file before doing any modification. Last edited by eduzs; 05-04-2019 at 03:50 AM. |
#2
|
||||
|
||||
What do you mean by "Is there a way to set the axis the shape/inlineshape axis after a rotation"? What axis?
The basic code to rotate an InlineShape is: Code:
Sub Demo() Dim Shp As Shape With ActiveDocument Set Shp = .InlineShapes(1).ConvertToShape With Shp .Rotation = 90 .ConvertToInlineShape End With End With End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Hi! Thank you!
Is there any difference between "rotation" and "incrementrotation"? I'll explain better: For example, when I apply a 90 ° clockwise rotation, the rotation handle (small green dot) that is originally at the top of the shape goes to the right side of the shape. This means that if I change the width of the shape, I will actually be altering the height.
__________________
Backup your original file before doing any modification. |
#4
|
||||
|
||||
Neither .Rotation nor .IncrementRotation changes the image's logical top & sides. Why do you believe you need to do that?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
No need, copy, delete and paste as a new image also works.
It's because is difficult to set height and width within VBA when they shape is rotated. Thanks.
__________________
Backup your original file before doing any modification. |
#6
|
||||
|
||||
You could, of course do that adjustment before or after rotating it - all you need do is keep the orientation in mind so you know axis which you're working with.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Visio 2007 Can't rotate building door shape, No handle for rotation | themurf47 | Visio | 1 | 02-21-2018 07:03 AM |
How to read an inlineshape which is stored in a table cell | dherr | Word VBA | 1 | 01-11-2018 07:23 PM |
my excel 2010 line chart has a secondary axis. Its horizontal date axis is incorrect. | jalea148 | Excel | 3 | 01-06-2017 09:04 AM |
VBA to change shape rotation | gebobs | Excel Programming | 4 | 09-06-2014 07:47 AM |
Secondry Axis overlapping in bar chart dual axis in Powerpoint 2010 | sharath_ms | PowerPoint | 0 | 07-08-2013 10:06 PM |