Home
How to Remove the Stubborn Horizontal Line in Word That Won't Delete
A horizontal line in Microsoft Word that refuses to disappear after pressing the Backspace or Delete key is a common frustration for document editors. Most often, this occurs because the line is not a text character but a paragraph border automatically applied by Word's "AutoFormat As You Type" feature.
To quickly remove an automatic horizontal line, place the cursor directly above the line, navigate to the Home tab, click the arrow next to the Borders icon in the Paragraph group, and select No Border.
This guide provides a comprehensive breakdown of identifying and eliminating every type of line that might appear in a Word document, from automatic borders and table lines to hidden formatting marks and drawn shapes.
The Mystery of the Automatic Paragraph Border
When typing three hyphens (---), underscores (___), or equal signs (===) followed by the Enter key, Word automatically converts those characters into a solid horizontal line that spans the width of the page. Because this line is technically a border attached to the paragraph above it, the cursor cannot "select" it like a normal image or text string.
Using the Borders Menu to Remove Lines
The most reliable method for removing these lines is through the Paragraph formatting settings:
- Position the Cursor: Click the mouse in the paragraph immediately above the line. If there are multiple lines, highlight the text blocks surrounding them.
- Navigate the Ribbon: Go to the Home tab at the top of the interface.
- Access Borders: Locate the Paragraph group. Look for the Borders icon (a square divided into four quadrants).
- Clear the Border: Click the small downward-facing arrow next to the icon. From the dropdown menu, select No Border.
The line should vanish instantly. If the line remains, it may be attached to the paragraph below it. Move the cursor below the line and repeat the process.
The Ctrl + Q Shortcut Method
For those working with long documents where multiple automatic lines have been created, using a keyboard shortcut can save time. The shortcut Ctrl + Q (on Windows) resets the paragraph formatting to the default style of the document.
- Place the cursor in the paragraph above the line.
- Press Ctrl + Q.
- This command removes all direct paragraph formatting, including the border line, without affecting the font style or size (which are character-level formatting).
Removing Lines via the Borders and Shading Dialog
If the dropdown menu fails, the full dialog box offers more granular control:
- Place the cursor near the line.
- Go to Home > Borders (arrow) > Borders and Shading.
- Ensure you are on the Borders tab (not Page Border).
- Under the Setting column on the left, select None.
- In the Apply to box on the right, ensure it says Paragraph.
- Click OK.
Identifying and Deleting Drawn Lines and Shapes
Sometimes a line is not a border but a graphical object inserted via the "Shapes" tool. These are called "Floating Objects" and behave differently than paragraph-anchored borders.
How to Select a Graphical Line
A drawn line can be identified by clicking on it. If small circles (handles) appear at either end of the line, it is a shape.
- Click directly on the line. The cursor should change to a four-headed arrow.
- Once the handles appear, press the Delete key on the keyboard.
Using the Selection Pane for Difficult Shapes
If a line is hidden behind text or is too thin to click easily, use the Selection Pane:
- Go to the Home tab.
- In the Editing group (far right), click Select.
- Choose Selection Pane.
- A list of all objects on the current page will appear in a sidebar. Look for names like "Straight Connector" or "Line."
- Click the item in the list to select it in the document, then press Delete.
Removing Lines within Tables and Gridlines
A "line" might actually be a border of a table that has been resized to look like a simple divider.
Deleting Table Borders
If the cursor enters a grid-like structure when clicking near the line, it is likely a table border.
- Click inside the table area.
- The Table Design and Layout tabs will appear in the Ribbon.
- Go to Table Design.
- Click the Borders dropdown and select No Border.
Alternatively, if the entire table is unnecessary, select the table using the crosshair icon at the top-left corner and press Shift + Delete to remove the table and its content.
Hiding Table Gridlines
Sometimes, lines are visible on the screen but do not print. These are "Gridlines," used as visual guides for borderless tables.
- Go to the Layout tab (under Table Tools).
- Click View Gridlines to toggle the blue dotted lines off.
Dealing with Lines in Headers and Footers
Lines that appear at the very top or bottom of every page are usually part of the Header or Footer style.
Accessing the Header Space
- Double-click the area at the very top of the page to open the Header & Footer view.
- If the line is a paragraph border (common in many built-in Word templates), use the Home > Borders > No Border method while the header is active.
- If the line is a shape, click it and press Delete.
- Double-click the main body of the document to exit the header view.
The "Horizontal Line" Content Control
Word has a specific "Horizontal Line" feature (Home > Borders > Horizontal Line) that inserts a graphic line across the page. Unlike paragraph borders, this is an object. To remove it:
- Click the line.
- Press Delete.
Removing Page Breaks and Section Break Lines
Dotted or solid lines that span the page and are labeled "Page Break" or "Section Break" are formatting marks.
- Show Formatting Marks: Go to the Home tab and click the Show/Hide ¶ icon (or press Ctrl + *).
- Locate the Break: The line will now be visible with a label.
- Delete: Place the cursor at the beginning of the "Page Break" line and press the Delete key.
Note: Be careful when deleting Section Breaks, as this can change the margins, headers, or page orientation of the preceding text.
How to Remove a Line Between Columns
If a vertical line appears between columns in a multi-column layout, it is a specific setting in the Columns dialog.
- Select the text within the columns.
- Go to the Layout tab.
- Click Columns and select More Columns....
- Uncheck the box labeled Line between.
- Click OK.
Removing the Vertical Line on the Left Margin (Track Changes)
A vertical line in the left or right margin usually indicates "Track Changes" are active, marking where edits have been made.
- Go to the Review tab.
- In the Tracking group, look at the display options. Change "All Markup" to "No Markup" to hide the lines.
- To remove them permanently, you must Accept or Reject the changes in the document.
Preventing Word from Automatically Creating Lines
To stop Word from turning hyphens and underscores into paragraph borders in the future, follow these steps to adjust the AutoCorrect settings:
- Open Options: Click File and select Options (on Mac, go to Word > Preferences).
- Proofing: Select the Proofing tab.
- AutoCorrect Options: Click the AutoCorrect Options... button.
- AutoFormat As You Type: Navigate to this tab.
- Uncheck Border Lines: Under the "Apply as you type" section, deselect the checkbox for Border lines.
- Confirm: Click OK on all dialog boxes.
After disabling this, typing --- and pressing Enter will simply leave the three hyphens as text.
Advanced Troubleshooting: Using Find and Replace for Mass Cleanup
If a document is riddled with hundreds of manual line breaks or specific characters used as lines, the Find and Replace tool is the most efficient solution.
Removing Manual Line Breaks
- Press Ctrl + H to open the Find and Replace dialog.
- Click More >>.
- Click Special and select Manual Line Break (which appears as
^lin the find box). - Leave the Replace with box empty.
- Click Replace All.
Removing Rows of Symbols
If the "line" is actually a long string of underscores (__________) or dashes (----------):
- Copy a section of the symbols.
- Press Ctrl + H.
- Paste the symbols into the Find what box.
- Leave Replace with empty and click Replace All.
Summary of Line Removal Techniques
| Line Type | Identification | Primary Removal Method |
|---|---|---|
| Auto-Format Line | Cannot be selected; moves with text. | Home > Borders > No Border |
| Drawn Shape | Has handles/circles when clicked. | Select and press Delete |
| Table Border | Appears around text cells. | Table Design > Borders > No Border |
| Page Break | Labeled line visible with ¶ enabled. | Delete the formatting mark |
| Header Line | Repeats on every page top. | Edit Header > Clear Paragraph Border |
| Column Divider | Vertical line between text blocks. | Layout > Columns > Uncheck "Line between" |
Conclusion
Removing a line in Microsoft Word requires identifying the underlying formatting mechanism. Whether it is a paragraph border triggered by AutoFormat, a drawn shape, a table boundary, or a section break, the solution lies in the specific Ribbon tab associated with that feature. By mastering the Borders menu and the Show/Hide ¶ tool, users can clean up unwanted visual elements and maintain professional document standards. Disabling the "Border lines" feature in AutoCorrect options is the final step to ensuring a seamless, distraction-free writing experience.
FAQ
Why can't I click on the line to delete it?
This usually happens because the line is a Paragraph Border. It isn't an object "on" the page; it is a property of the paragraph. You must use the "No Border" setting in the Paragraph group on the Home tab to remove it.
How do I remove the horizontal line in a Word header?
Double-click the header area to activate it. Place your cursor in the header text, go to the Home tab, and select No Border from the Borders dropdown menu. If the line was part of a built-in header style, you might also try clicking Clear All Formatting.
Does Ctrl + Z work for automatic lines?
Yes, but only if you catch it immediately. As soon as Word converts your three dashes into a line, press Ctrl + Z to undo the AutoFormat. This will turn the line back into three dashes, which you can then delete normally.
What is the shortcut to remove all borders in Word?
While there isn't a single "delete all lines" shortcut, Ctrl + Q is the most effective. It removes all paragraph-level formatting, including borders, for the selected text block.
How do I remove a vertical line that won't go away?
Check three things: 1. Is it a column divider? (Layout > Columns). 2. Is it a table border? (Table Design > Borders). 3. is it a "Track Changes" bar? (Review > Accept Changes). Each has a different removal path as detailed in the guide above.
-
Topic: a black line is appearing at the top of my all of my Word documents. Need to remove it and the dotted line at the end of page - Microsoft Q& Ahttps://learn.microsoft.com/en-in/answers/questions/5916732/a-black-line-is-appearing-at-the-top-of-my-all-of
-
Topic: Can delete line in word - Word и Excel - помощь в работе с программамиhttps://wordexcel.top/can-delete-line-in-word/
-
Topic: How To Remove Line In Microsoft Wordhttps://ms.codes/blogs/microsoft-office/how-to-remove-line-in-microsoft-word