ShapeRange.Rotation property (Publisher)
Returns or sets a Single that represents the number of degrees that the specified shape is rotated around the z-axis. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. Read/write.
Syntax
expression.Rotation
expression A variable that represents a ShapeRange object.
Remarks
To set the rotation of a three-dimensional shape around the x-axis or the y-axis, use the RotationX property or the RotationY property of the ThreeDFormat object.
Example
This example matches the rotation of all shapes on the first page of the active publication to the rotation of the first shape. This example assumes that there are at least two shapes on the first page of the active publication.
Sub SetShapeRotation()
Dim sngRotation As Single
Dim intCount As Integer
With ActiveDocument.Pages(1).Shapes
sngRotation = .Item(1).Rotation
For intCount = 1 To .Count
.Item(intCount).Rotation = sngRotation
Next intCount
End With
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.