How to remove empty lines in Word?

The document downloaded from the web has too many empty lines (manual line breaks). To save paper and space, we need to remove all empty lines. Is there an easier way to remove all empty lines instead of deleting each one manually? This tutorial will list three available methods for removing all empty lines in the whole or selection of documents:

Remove all empty lines with the Find and Replace option

Remove all empty lines with VBA

Remove all empty lines with Kutools for Word

Kutools for Word: Add 100 New Advanced Features to Word 2003/2007/2010/2013.
Office Tab: Enable Tabbed Editing and Browsing in Office, Just Like Chrome, Firefox, IE 8/9/10.
Classic Menu for Office: Bring Old Look of Office 2003 Back to Office 2007, 2010 and 2013.

arrow blue right bubble Remove all empty lines with the Find and Replace option

Hot
Amazing! Using Tabs in Word like Firefox, Chrome, Internet Explore 10!

Learn moreFree download

The Find and Replace function in Word is commonly used to remove all empty lines, but you have to know the empty lines are called Manual Line Breaks in the Find What option.

1. Click Replace on the Home tab. See screenshot:

2. When the Find and Replace dialog popping up, click More>> button to show more options.

3. Place the cursor in the Find What field, and select the Manual Line Break from the Special pull-down menu.

4. There will be a “^l” character in the Find What field, and click Replace All.


arrow blue right bubble Remove all empty lines with VBA

Alternatively you can use a macro to remove all empty lines if you are good at VBA code, and you may follow the below instructions like this:

1. Press “Alt+F11” to open the Microsoft Visual Basic for Application window.

2. Click Insert > Module, and then copy the below VBA code into the module window.

The VBA code of removing all manual line breaks in the document:

Sub Deleemptylines()
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "^l"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = False
.MatchFuzzy = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub

3. Then click Run Sub button to run the code, the section breaks will be removed.

Note: This VBA code was successfully tested in Word 2010 and 2013.


arrow blue right bubble Remove all empty lines with kutools for Word

The above methods require a few steps to remove all empty lines, but with Kutools for Word, only one click will help you complete this operation.

Kutools for Word, a handy add-in, includes groups of functions to ease your work and enhance your ability of processing word documents. Free Trial for 45 days! Get It Now!

1. Please apply this utility by clicking Kutools > Empty Paras > Remove Empty Manual Line Breaks. See screenshot:

2. After clicking Remove Empty Manual Line Breaks, you can see all the empty lines are removed for the document.

For more information about how to Remove Empty Manual Line Breaks from a part of the document, please visit here.


arrow blue right bubble Kutools for Word

More than 100 Advanced Functions for Word 2003, 2007, 2010 and 2013

shot-kutools-700-225-kte

More Features  |  Free Download  |  Only $19.00 for hundreds of functions

Comments  

+5#Vijay2014-01-17 13:42
Not working !!!!!!!!!!!
Reply | Reply with quote | Quote

Add comment


Security code
Refresh