Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 1.05 KB

PowerPoint.Shape.Parent.md

File metadata and controls

52 lines (31 loc) · 1.05 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Shape.Parent property (PowerPoint)
vbapp10.chm547001
vbapp10.chm547001
PowerPoint.Shape.Parent
a88b1ec0-79de-4aef-9b71-a21bf8de2f44
06/08/2017
medium

Shape.Parent property (PowerPoint)

Returns the parent object for the specified object.

Syntax

expression.Parent

expression A variable that represents a Shape 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

Shape Object

[!includeSupport and feedback]