TextFrame2.Orientation property (PowerPoint)
Returns or sets text orientation. Read/write.
Syntax
expression.Orientation
expression An expression that returns a TextFrame2 object.
Return value
MsoTextOrientation
Remarks
The value of the Orientation property can be one of these MsoTextOrientation constants.
msoTextOrientationDownward |
msoTextOrientationHorizontal |
msoTextOrientationHorizontalRotatedFarEast |
msoTextOrientationMixed |
msoTextOrientationUpward |
msoTextOrientationVertical |
msoTextOrientationVerticalFarEast |
Note
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.
Example
This example shows how to orient the text horizontally in shape one on slide one in the active presentation.
Public Sub Orientation_Example()
Dim pptSlide As Slide
Set pptSlide = ActivePresentation.Slides(1)
pptSlide.Shapes(1).TextFrame2.Orientation = msoTextOrientationHorizontal
End Sub
See also
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for