Syntax

expression.ToggleVerticalText

expression A variable that represents a TextEffectFormat object.

Remarks

Using the ToggleVerticalText method swaps the values of the and properties of the object that represents the WordArt and leaves the and properties unchanged.

The method and property of the Shape object and the property and method of the object all affect the character orientation and the direction of text flow in a Shape object that represents WordArt. You may have to experiment to find out how to combine the effects of these properties and methods to get the result you want.

Example

This example adds WordArt that contains the text "Test" to myDocument and switches from horizontal text flow (the default for the specified WordArt style, msoTextEffect1) to vertical text flow.

Visual Basic for Applications
Set myDocument = Worksheets(1) Set newWordArt = myDocument.Shapes.AddTextEffect( _ PresetTextEffect:=msoTextEffect1, Text:="Test", _ FontName:="Arial Black", FontSize:=36, _ FontBold:=False, FontItalic:=False, Left:=100, _ Top:=100) newWordArt.TextEffect.ToggleVerticalText
Flip text orientation between vertical and horizontal? Switch to vertical text flow? toggle toggle vertical text Toggle Vertical Text Method togglevertical ToggleVerticalText toggleverticaltext method

See also: