WordWrap property

Indicates whether the contents of a control automatically wrap at the end of a line.

Syntax

object.WordWrap [= Boolean ]

The WordWrap property syntax has these parts:

Part Description
object Required. A valid object.
Boolean Optional. Whether the control expands to fit the text.

Settings

The settings for Boolean are:

Value Description
True The text wraps (default).
False The text does not wrap.

Remarks

For controls that support the MultiLine property as well as the WordWrap property, WordWrap is ignored when MultiLine is False.

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.