How to remove all horizontal lines from Word document?

Horizontal lines can divide paragraphs clearly. Many users already know they can add horizontal lines to document by typing three hyphens, underscore or asterisks and so on, and then pressing Enter. See screenshot:

dov-removehorline-1

How to remove all horizontal lines from the document? This tutorial will tell you the answers.

Manually remove all horizontal lines one by one

Remove all horizontal lines with VBA code

Remove all horizontal 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 bubbleManually remove all horizontal lines one by one

If you just want to remove few horizontal lines, you can manually remove them as follows:

Step 1: Select the horizontal lines you want to remove;

Step 2: Press Delete button on the keyboard to remove the selected horizontal line.

Sometimes when you try to remove the horizontal line by selecting it and pressing Delete, but it remains there. You can try the following:

Step 1: Put the cursor above the line;

Step 2: Click on the Page Borders item in the Page Background group of Page Layout tab;

Step 3: Click Borders tab, click None, click OK.

dov-removehorline-2


arrow blue right bubbleRemove all horizontal lines with VBA code

If you want to remove all horizontal lines in the document, it’s tedious to remove them manually. VBA can make it easier, do as follows:

Step 1: Press Alt+F11 to open the VBA window in Word;

Step 2: Click Module from Insert tab, and insert the code into the Module window;

Step 3: Click Run button or press F5 to apply VBA directly.

The code to remove all horizontal lines from the document:

Sub removehline()
Dim ils As Paragraph
For Each ils In ActiveDocument.Paragraphs
ils.Borders(wdBorderBottom).LineStyle =wdLineStyleNone
Next ils
End Sub


arrow blue right bubbleRemove all horizontal lines with Kutools for Word

It’s easiest remove all horizontal lines from the whole document or the selection of the document with Kutools for Word.

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

Click kutools > click Remove All in the Clear group > select Remove Paragraph bottom horizontal line to remove all horizontal lines.

dov-removehorline-3


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

Add comment


Security code
Refresh