HorizontalAnchor Property

Microsoft PowerPoint Visual Basic

Returns or sets the horizontal alignment of text in a text frame. Read/write MsoHorizontalAnchor.

MsoHorizontalAnchor can be one of these MsoHorizontalAnchor constants.
msoAnchorNone
msoHorizontalAnchorMixed
msoAnchorCenter

expression.HorizontalAnchor

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

Example

This example sets the alignment of the text in shape one on myDocument to top centered.

Set myDocument = ActivePresentation.SlideMaster
With myDocument.Shapes(1)
    .TextFrame.HorizontalAnchor = msoAnchorCenter
    .TextFrame.VerticalAnchor = msoAnchorTop
End With