Formatting Issues

How to Turn Dashes Into a Solid Line in Microsoft Word

Aamir Naveed AkramAamir Naveed Akram Nov 20, 2026 869 views

Question details

The user wants Microsoft Word to automatically turn typed dashes into a solid horizontal line.

How to Turn Dashes Into a Solid Line in Microsoft Word
Product
Microsoft Word
Device & OS
not provided
Scenario
The user wants to insert a horizontal divider by typing dashes in a Word document.
Observed behavior
Word should convert three typed hyphens into a solid paragraph border when the user presses Enter.
Before you start

Open the document in the desktop version of Word and place the cursor on a blank line. Menu names and availability may vary by Word version.

Solution 1Recommended

Enable Border Lines in Word AutoFormat

Use this setting to make Word automatically convert three hyphens into a solid horizontal border.

1
Open Word Options

In Word, select File > Options.

2
Open AutoCorrect settings

Select Proofing, then choose AutoCorrect Options.

3
Enable border lines

Open the AutoFormat As You Type tab. Under Apply as you type, select Border lines, then select OK to close the dialogs.

4
Type the dashes

On a blank line in your document, type three hyphens (---) and press Enter. Word converts them into a solid horizontal line.

Enable Border Lines in Word AutoFormat
The line is a paragraph border: Word applies the line as a border to the paragraph above it, rather than inserting a separate drawing.
Free Microsoft Office alternative

Create document dividers with WPS Writer

WPS Office is a free, lightweight alternative with a familiar interface and support for Word formats, making it easy to move existing documents. In WPS Writer, you can add a horizontal divider using a paragraph border or line shape; this does not change Word's AutoFormat setting.

Add horizontal dividers using document formatting tools.Open and edit Microsoft Word DOC and DOCX files.Work in a familiar interface that makes migration straightforward.Use a free, lightweight office suite.
microsoft office alternative - wps office

Frequently Asked Questions

Why don't my dashes turn into a line in Word?

Check File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type and make sure Border lines is selected. Then type three hyphens on a blank line and press Enter.

How do I remove the automatic line?

Place the cursor in the paragraph immediately above the line. On the Home tab, open the Borders menu in the Paragraph group and select No Border.

Can I undo the line right after Word creates it?

Yes. Immediately after the line appears, select Undo on the Quick Access Toolbar to reverse the automatic formatting.

How do I stop Word from creating lines from dashes?

Go to File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type and clear the Border lines checkbox.