IncrementRotation Method

Microsoft Publisher Visual Basic

expression.IncrementRotation(Increment)

expression    Required. An expression that returns one of the objects in the Applies To list.

Increment   Required Single. Specifies how far the shape is to be rotated around the z-axis, in degrees. A positive value rotates the shape clockwise; a negative value rotates it counterclockwise. Valid values are between – 360 and 360.

Remarks

Use the Rotation property to set the absolute rotation of the shape.

To rotate a three-dimensional shape around the x-axis (horizontal) or the y-axis (vertical), use the IncrementRotationX method or the IncrementRotationY method, respectively.

Example

This example duplicates the first shape on the active publication, sets the fill for the duplicate, moves it 70 points to the right and 50 points up, and rotates it 30 degrees clockwise.

With ActiveDocument.Pages(1).Shapes(1).Duplicate
    .Fill.PresetTextured PresetTexture:=msoTextureGranite
    .IncrementLeft Increment:=70
    .IncrementTop Increment:=-50
    .IncrementRotation Increment:=30
End With