How to Turn Dashes Into a Solid Line in Microsoft Word
Question details
The user wants Microsoft Word to automatically turn typed dashes into a solid horizontal line.

- 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.
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.
Enable Border Lines in Word AutoFormat
Use this setting to make Word automatically convert three hyphens into a solid horizontal border.
In Word, select File > Options.
Select Proofing, then choose AutoCorrect Options.
Open the AutoFormat As You Type tab. Under Apply as you type, select Border lines, then select OK to close the dialogs.
On a blank line in your document, type three hyphens (---) and press Enter. Word converts them into a solid horizontal line.

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.

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.




