CellFormat.WrapText property (Excel)

Returns or sets a Variant value that indicates if Microsoft Excel wraps the text in the object.

Syntax

expression.WrapText

expression A variable that represents a CellFormat object.

Remarks

This property returns True if text is wrapped in all cells within the specified range, False if text is not wrapped in all cells within the specified range, or Null if the specified range contains some cells that wrap text and other cells that don't.

Microsoft Excel will change the row height of the range, if necessary, to accommodate the text in the range.

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.