Instructions automatic text carriage return in Excel - Auto line breaks when the width of the column in Excel

When working with Excel files when you type content for a cell with long content, the letters will not automatically enter the line, but will be overwritten in the next column. The following article shows you how to auto-wrap text in Excel - Auto-wrap text at the end of the column width in Excel.

For example, when typing the text into cell C3 exceeds the width of the column so the text is obscured and not displayed:

Instructions automatic text carriage return in Excel - Auto line breaks when the width of the column in Excel Picture 1

1. For a cell that is an original cell (do not merge other column or row cells into 1), it is very simple:

- Select the cell you want to automatically drop text when the width of the column ends -> go to Home tab -> Alignment -> select Wrap Text feature :

Instructions automatic text carriage return in Excel - Auto line breaks when the width of the column in Excel Picture 2

- After selecting the option Wrap Text -> text content in the cell automatically down the line when the width of the column:

Instructions automatic text carriage return in Excel - Auto line breaks when the width of the column in Excel Picture 3

2. With data cells assembled from multiple cells

- The case with Excel cells is aggregated from many other cells if using Text Wrap feature to wrap text content when the column width is empty but the height of the cell does not change so the text is still covered. For example, when merging cell B4 and cell C4 into one cell after entering the content, selecting the Wrap Text feature does not automatically go down the line when the width of the column is over:

Instructions automatic text carriage return in Excel - Auto line breaks when the width of the column in Excel Picture 4

- In this case (the cells are aggregated from many other cells) you need to use additional code after selecting the Wrap Text feature :

+ Select the Excel file that you want to automatically move the text down the width of the column -> press Alt + F11 to enter the command window -> copy the following code for the Change event of the worksheet:

 Private Sub Worksheet_Change (ByVal Target As Range) Dim NewRwHt As Single Dim cWdth As Single, MrgeWdth As Single Dim c As Range, cc As Range Dim ma As Range With Target If .MergeCells And .WrapText Then Set c = Target.Cells (1 , 1) cWdth = c.ColumnWidth Set ma = c.MergeArea For Each cc In ma.Cells MrgeWdth = MrgeWdth + cc.ColumnWidth Next Application.ScreenUpdating = False ma.MergeCells = False c.ColumnWidth = MrgeWdth c.EntireRow.AutoFit NewRwHt = c.RowHeight c.ColumnWidth = cWdth ma.MergeCells = True ma.RowHeight = NewRwHt cWdth = 0: MrgeWdth = 0 Application.ScreenUpdating = True End If End With End Sub 
Instructions automatic text carriage return in Excel - Auto line breaks when the width of the column in Excel Picture 5

+ After typing the above code to save and exit VBA, return to the Excel file to re-enter the content for the cell just created the text content automatically down the line when the width of the column and the height of the cell is changed. , unbleached text content:

Instructions automatic text carriage return in Excel - Auto line breaks when the width of the column in Excel Picture 6

The above is a detailed guide on how to auto-wrap text in Excel - Auto-break line at the end of the column width in Excel version 2016. I wish you success!

4 ★ | 23 Vote

May be interested

  • Presentation of Powerpoint reportPhoto of Presentation of Powerpoint report
    presentation of powerpoint report. once you have prepared the powerpoint report presentation, the final step is a powerpoint presentation. so how to present powerpoint report? here's how to present a powerpoint report, how to convert it
  • How to delete a page in WordPhoto of How to delete a page in Word
    how to delete a page in word. in the process of editing, editing text in word, you will probably encounter the case of appearing blank pages and you want to delete those pages to make your text more seamless. here the article shows you how
  • How to convert a scanned file to WordPhoto of How to convert a scanned file to Word
    how to convert a scanned file to word. you often have to work with a scan file and need to edit it in word. if there are only 1 or 2 pages then you can enter manually but if there are many scanned files then it will take you a lot of time to import
  • Instructions on how to create charts in Excel professionalPhoto of Instructions on how to create charts in Excel professional
    instructions on how to create charts in excel professional. excel supports many types of charts from column charts, line charts to area charts, scatter charts, radar charts .... you can freely choose the chart type that fits the table. data required
  • How to draw a line chart in ExcelPhoto of How to draw a line chart in Excel
    how to draw a line chart in excel. a line chart shows continuous data over time on an evenly divided axis, so a line chart is suitable for representing data trends at equal time periods like months, quarters or years.
  • How to group in Word, group multiple shapes into 1 in WordPhoto of How to group in Word, group multiple shapes into 1 in Word
    how to group in word, group multiple shapes into 1 in word. the group feature (group) in word helps you group shapes into a unified block, making moving a group of objects easier without fear of affecting the arrangement in the