TextFrame.Orientation property (Publisher)

Returns or sets a PbTextOrientation constant that represents how text flows in a text box. Read/write.

Syntax

expression.Orientation

expression A variable that represents a TextFrame object.

Return value

PbTextOrientation

Remarks

The Orientation property value can be one of the PbTextOrientation constants declared in the Microsoft Publisher type library.

Example

This example sets the text orientation in the specified text box to vertical so that text flows from top to bottom. This example assumes that there is at least one shape on page one of the active publication.

Sub SetVerticalTextBox() 
 ActiveDocument.Pages(1).Shapes(1).TextFrame _ 
 .Orientation = pbTextOrientationVerticalEastAsia 
End Sub

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.