TextFrame.Orientation property (PowerPoint)

Returns or sets text orientation. Read/write.

Syntax

expression.Orientation

expression A variable that represents a TextFrame object.

Return value

MsoTextOrientation

Remarks

Some of these constants may not be available to you, depending on the language support (U.S. English, for example) that you've selected or installed.

The value of the Orientation property can be one of these MsoTextOrientation constants.

msoTextOrientationDownward
msoTextOrientationHorizontal
msoTextOrientationHorizontalRotatedFarEast
msoTextOrientationMixed
msoTextOrientationUpward
msoTextOrientationVertical
msoTextOrientationVerticalFarEast

Example

This example orients the text horizontally within shape three on myDocument.

Set myDocument = ActivePresentation.Slides(1)

myDocument.Shapes(3).TextFrame.Orientation = msoTextOrientationHorizontal


See also

TextFrame Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.