Skip to content

Latest commit

 

History

History
64 lines (38 loc) · 1.33 KB

PowerPoint.TextFrame.WordWrap.md

File metadata and controls

64 lines (38 loc) · 1.33 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
TextFrame.WordWrap property (PowerPoint)
vbapp10.chm558013
vbapp10.chm558013
PowerPoint.TextFrame.WordWrap
f6077142-9afd-b274-7301-3e63d962e7b3
06/08/2017
medium

TextFrame.WordWrap property (PowerPoint)

Determines whether lines break automatically to fit inside the shape. Read/write.

Syntax

expression.WordWrap

expression A variable that represents a TextFrame object.

Return value

MsoTriState

Remarks

The value of the WordWrap property can be one of these MsoTriState constants.

Constant Description
msoFalse Lines don't break automatically to fit inside the shape.
msoTrue Lines break automatically to fit inside the shape.

Example

This example adds a rectangle that contains text to myDocument and then turns off word wrapping in the new rectangle.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes.AddShape(msoShapeRectangle, _
        0, 0, 100, 300).TextFrame
    .TextRange.Text = _
        "Here is some test text that is too long for this box"
    .WordWrap = False
End With

See also

TextFrame Object

[!includeSupport and feedback]