Unwrap text

How to unwrap content in a cell using Excel and VBA methods

METHOD 1. Unwrap text using a ribbon option

EXCEL

Select the cell in which to unwrap text > Home tab > Alignment group > Wrap Text

1. Select the cell in which you want to unwrap text.
Note: in this example we are unwrapping cell B2.
Select cell in which to unwrap text

2. Select the Home tab. Select Home tab - Excel 2016

3. Click on Wrap Text, in the Alignment group. Click on Wrap Text

METHOD 2. Unwrap text using cell format

EXCEL

Right-click on the cell in which to unwrap text > Format Cells > Alignment tab > Check Wrap text checkbox > Click OK

1. Right-click on the cell in which you want to unwrap text.
2. Select Format Cells.
Right-click on cell in which to unwrap text and click Format Cells

3. Select the Alignment tab.
4. Uncheck the Wrap text checkbox.
5. Click OK.
Select Alignment tab, uncheck Wrap text and click OK

METHOD 1. Unwrap text using VBA

VBA

Sub Unwrap_Text()
'unwrap text in cell B2 in worksheet named Sheet1
Worksheets("Sheet1").Range("B2").WrapText = False

End Sub

PREREQUISITES
Worksheet Names: Have a worksheet named Sheet1.
ADJUSTABLE PARAMETERS
Sheet Selection: Select the worksheet in which you want to unwrap text by changing the Sheet1 worksheet name in the VBA code.
Wrap Text Cell Selection: Select the cell in which you want to unwrap the text by changing the cell reference ("B2") in the VBA code.

METHOD 2. Unwrap text in selected cells using VBA

VBA

Sub Unwrap_Text()
'unwrap text in selected cells
Selection.WrapText = False

End Sub

Explanation about how to unwrap text

EXPLANATION

EXPLANATION
This tutorial explains and provides step by step instructions on how to unwrap text.

Excel Methods: This tutorial provides two Excel methods that can be applied to unwrap text. Both of the methods are very similar to each other, with one using the Home tab and the other using the Format cells option. The first method can be accomplished in three steps, whilst the second in five steps.

VBA Methods: This tutorial provides two VBA methods that can be applied to unwrap text. The first method unwraps text in the cells specified in the VBA code. The second method unwraps text the selected cells.

RELATED TOPICS

Related Topic Description Related Topic and Description
How to fit content in a cell without adjusting column width using Excel and VBA methods
How to merge cells using Excel and VBA methods
How to unmerge cells using Excel and VBA methods