Skip to content

Latest commit

 

History

History
45 lines (22 loc) · 890 Bytes

6c46a46c-14f3-b61e-e381-87ec0eff8974.md

File metadata and controls

45 lines (22 loc) · 890 Bytes

MotionEffect.Parent Property (PowerPoint)

Returns the parent object for the specified object.

Syntax

expression. Parent

expression A variable that represents a MotionEffect object.

Return Value

Object

Example

This example adds an oval containing text to slide one in the active presentation and rotates the oval and the text 45 degrees. The parent object for the text frame is the Shape object that contains the text.

Set myShapes = ActivePresentation.Slides(1).Shapes

With myShapes.AddShape(Type:=msoShapeOval, Left:=50, _
        Top:=50, Width:=300, Height:=150).TextFrame
    .TextRange.Text = "Test text"
    .Parent.Rotation = 45
End With

See also

Concepts

MotionEffect Object

Other resources

MotionEffect Object Members