Skip to main content

How to remove all horizontal lines from a Word document?

Author Amanda Li Last modified

Horizontal lines can divide paragraphs clearly. Many users add them by typing three hyphens, underscores, or asterisks and pressing Enter, as shown below.

Horizontal lines of different styles in Word

However, removing these lines can sometimes be tricky. This guide will show you different methods to quickly remove all horizontal lines from your document.


Manually remove all horizontal lines one by one

If you only need to remove a few horizontal lines, follow these steps:

  1. Place the cursor above the horizontal line.
  2. Click Page Borders in the Page Background group under the Design tab.
    Page Borders button on the Design tab of the ribbon
  3. In the Borders and Shading dialog box, go to the Borders tab, select None, and click OK. The horizontal line will be removed.
    Borders and Shading dialog box

Remove all horizontal lines with Kutools for Word

The easiest way to remove all horizontal lines from a document or a selected section is by using Kutools for Word.

Kutools for Word, equipped with AI πŸ€–, offers over 100 handy features to simplify your tasks.
  • To remove all horizontal lines from the entire document, click Kutools > Remove > Horizontal Line.
  • To remove horizontal lines from a specific section, select the section first, then apply the same feature.
    Remove > Horizontal Line option on the Kutools tab of the ribbon

All horizontal lines in the document will be removed instantly.

Horizontal lines from the document are removed
Kutools for Word is the ultimate Word add-in that streamlines your work and boosts your document processing skills. Get It Now!

Remove all horizontal lines with VBA code

Manually removing multiple horizontal lines can be time-consuming. You can use VBA to remove all horizontal lines in one step:

  1. Press Alt + F11 to open the VBA editor.
  2. Click Module under the Insert tab and paste the following code into the module window:
    Sub removehline()
    Dim ils As Paragraph
    For Each ils In ActiveDocument.Paragraphs
    ils.Borders(wdBorderBottom).LineStyle =wdLineStyleNone
    Next ils
    End Sub
  3. Click Run or press F5 to execute the code. All horizontal lines will be removed.

Demo: Remove all horizontal lines in Word

Discover the Kutools / Kutools Plus tab in this video from Kutools for Word. Enjoy 100+ features and permanently free AI utilities. Download now!


Best Office Productivity Tools

Kutools for Word - Elevate Your Word Experience with Over 100 Remarkable Features!

πŸ€– Kutools AI Features: AI Assistant / Real-Time Assistant / Super Polish (Preserve Format) / Super Translate (Preserve Format) / AI Redaction / AI Proofread...

πŸ“˜ Document Mastery: Split Pages / Merge Documents / Export Selection in Various Formats (PDF/TXT/DOC/HTML...) / Batch Convert to PDF...

✏ Contents Editing: Batch Find and Replace across Multiple Files / Resize All Pictures / Transpose Table Rows and Columns / Convert Table to Text...

🧹 Effortless Clean: Sweap away Extra Spaces / Section Breaks / Text Boxes / Hyperlinks / For more removing tools, head to the Remove group...

βž• Creative Inserts: Insert Thousand Separators / Check Boxes / Radio Buttons / QR Code / Barcode / Multiple Pictures / Discover more in the Insert group...

πŸ” Precision Selections: Pinpoint Specific Pages / Tables / Shapes / Heading Paragraphs / Enhance navigation with more Select features...

⭐ Star Enhancements: Navigate to Any Location / Auto-Insert Repetitive Text / Toggle Between Document Windows / 11 Conversion Tools...

🌍 Supports 40+ Languages: Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Kutools and Kutools Plus tabs on the Word Ribbon
πŸ‘‰ Want to try these features? Download Kutools for Word now! πŸš€
 

Best Office Productivity Tools

Kutools for Word - 100+ Tools for Word