Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 1.42 KB

Word.TextFrame.Orientation.md

File metadata and controls

52 lines (31 loc) · 1.42 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
TextFrame.Orientation property (Word)
vbawd10.chm162660456
vbawd10.chm162660456
Word.TextFrame.Orientation
480b0ebd-c39c-0159-06a1-c909111d9486
06/08/2017
medium

TextFrame.Orientation property (Word)

Returns or sets the orientation of the text inside the frame. Read/write MsoTextOrientation.

Syntax

expression.Orientation

expression Required. A variable that represents a TextFrame object.

Remarks

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

You can set the orientation for a text frame or for a range or selection that happens to occur inside a text frame. For information about the difference between a text frame and a text box, see the TextFrame object.

Example

This example creates a new document, inserts text into it, uses this text to create a text box, and then sets the orientation of the text frame so that the text slopes upward.

Set mydoc = Documents.Add 
Selection.TypeText "This is some text." 
mydoc.Content.Select 
Selection.CreateTextbox 
mydoc.Shapes(1).TextFrame.Orientation = msoTextOrientationUpward

See also

TextFrame Object

[!includeSupport and feedback]