This documentation is archived and is not being maintained.

Range.WrapText Property 

Determines if Microsoft Excel wraps the text in the object.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

'Usage
Dim range1 As Range

Dim returnValue As Object
returnValue = range1.WrapText

Dim sampleValue As Object
range1.WrapText = sampleValue

object WrapText {get; set;}
public System.Object get_WrapText();
public void set_WrapText(System.Object);
function get WrapText() : Object;
function set WrapText(Object);

This property returns True if Microsoft Excel wraps the text in the object and 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.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Show: