Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

Comment.Parent Property (PowerPoint)

Published: July 16, 2012

Returns the parent object for the specified object.

expression .Parent

expression A variable that represents a Comment object.

Return Value


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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.