Home> Common Problem> body text

How to insert built-in and custom horizontal lines in Word documents

WBOY
Release: 2023-05-14 10:37:05
forward
3765 people have browsed it

For various purposes, you may need to insert horizontal lines in Word documents from time to time. You may need to separate a section, you may need to add a long underline to the title, etc. You may also know that typing3 hyphens(- – -)and pressingEnterinserts a standard horizontal line in the document. However, if you're tired of using the same old horizontal lines all the time in your documents, you might want to try your own custom horizontal lines. Or even simpler, insert the built-in horizontal lines that Excel already has.

No matter what your requirements are, we have them all covered. If you must frequently insert horizontal lines into your documents, we've also detailed how to assign keyword shortcuts to horizontal lines! So, let’s jump right into the article, shall we?

Part 1: How to Insert a Built-in Horizontal Line Using the Border Option

Step 1: First,clickthe point where you want to insert the horizontal line.

Now click on theHOME tab at the top.

Next, under theParagraphsection, click theBordersicon and select theBorders and Shadingoption.

如何在 Word 文档中插入内置和自定义的水平线

Step 2: In theBorders and Shadingwindow, make sure you are in theBorders" tab.

From theStyleoptions list, select the built-in border of your choice.

You can change the color of the border using theColordrop-down menu.

Now from theWidthdrop-down menu, select the width of your choice.

In the right pane, under the "Preview" section, make sure thebottom bordericon is the only active icon.

After all is completed, click theOK button at the bottom.

如何在 Word 文档中插入内置和自定义的水平线

Step 3: That’s it. Your built-in border is now inserted successfully.

如何在 Word 文档中插入内置和自定义的水平线

Note: Built-in borders are easy to insert, but difficult to delete, because the delete key will not delete borders inserted using this method. If you want to know how to remove borders inserted using this method, you can read our article on the topic How to Insert and Remove Horizontal Lines in Microsoft Word.

Part 2: How to Insert Custom Horizontal Lines Using Symbols and Characters

In the above section, we detailed how to insert the built-in horizontal lines in Word documents. But if you want to insert your own custom horizontal lines, there is a way. The following steps pave the way to achieving this goal!

Step 1:Clickanywhere on the Word document where you want to insert a custom horizontal line.

Now, click on the

Insert tab on the top ribbon.

Under the

INSERTtab options, click the drop-down menu namedSymbols, and then click theSymboldrop-down menu.

At the bottom of the list of available symbols, click the option

More symbols.

如何在 Word 文档中插入内置和自定义的水平线

Step 2: From the list of available symbols,click thesymbol you want to create a horizontal line, then click "Insert" button.

如何在 Word 文档中插入内置和自定义的水平线

Note: By default, the font type is set to normal text. But you can change theFonttype toWebdingsorWingdingsor any other font to see many other symbols and characters.

Step 3: You can insert any number of symbols in a similar manner.

Don’t forget to click the

Insertbutton every time you select a symbol. Also, once you're done, click theClosebutton.

如何在 Word 文档中插入内置和自定义的水平线

Step 4: In the following example, I created a pattern using the symbols I inserted in the previous step. I will now copy and paste this pattern to form a complete horizontal line. To copy and paste the pattern you create, press theCTRL Ckeys simultaneously, and then theCTRL Vkeys simultaneously.

Note: Remember that you can also enter characters from the keyboard between inserted symbols. Additionally, you can select theFontstyle options available under theHome tab. You can change thewidthof the pattern, you can change thecolor, etc.

如何在 Word 文档中插入内置和自定义的水平线

Step 5: Once the pattern repeats, it will be a complete line as shown in the screenshot below.

如何在 Word 文档中插入内置和自定义的水平线

Part 3: How to insert horizontal lines by specifying shortcuts

Of course, if you want to insert multiple lines in a Word document, follow the instructions in Section 2 above With all the steps detailed, inserting one horizontal line at a time would be very time consuming and definitely not the first choice. But what if you could use a keyword and pressEnterto insert a horizontal line, either built-in or custom? Yes, it's more like assigning a shortcut key to each horizontal line. Sound cool? continue reading.

Step 1: Start by inserting the row once using one of the methodsdetailed in the sections above.

If the row you want to assign a shortcut key to is a built-in horizontal line that you inserted using section 1, just click on itsinitial part toselect The lineis shown in the screenshot below. Next click on theFile tab at the top.

如何在 Word 文档中插入内置和自定义的水平线

Alternatively, if you followed the steps detailed in Section 2 to insert a custom line,click and drag to Select the entire horizontal lineas shown below.

After selecting the row, click the "File" tab in the top ribbon.

如何在 Word 文档中插入内置和自定义的水平线

Step 2: Now, in the left pane of the window, click onOptions.

如何在 Word 文档中插入内置和自定义的水平线

Step 3: In theleftpane of theWord Options window, Click "proof".

In therightpane, click theAutoCorrectOptions button under the section with the same name.

如何在 Word 文档中插入内置和自定义的水平线

Step 4: Make sure you are on theAutoCorrecttab first.

Now, at the bottom of the "AutoCorrect" option, under the "Replace" section, type your preferred keyword## for the selected horizontal line#, as shown in the screenshot below. In the example below, I specified the shortcut keyword for the horizontal line astheGeekPage1. Once done, click theAddbutton.

Click the

OK button at the bottom to continue.

如何在 Word 文档中插入内置和自定义的水平线

When you return to the

Word Optionswindow, click theOKbutton.

Step 5: Now you will be in your Word document again. Enter the keyword you want to assignto for the horizontal line and pressEnter.

Note: Keywordsare notcase sensitive. This means that Word treatsthegeekpage1andtheGeekPage1the same way.

如何在 Word 文档中插入内置和自定义的水平线

Step 6: Viola! A horizontal line is now magically inserted, replacing your shortcut keyword.

如何在 Word 文档中插入内置和自定义的水平线

Step 7: Likewise, you can select any horizontal line and assign any keyword as per your choice, except reserved keywords.

In the example screenshot below, I have assigned the keyword

line1to another line.

如何在 Word 文档中插入内置和自定义的水平线

Step 8: Now, try typingLine1and pressEnterkey.

如何在 Word 文档中插入内置和自定义的水平线

Step 9: Of course, the allocated row is inserted! enjoy!

如何在 Word 文档中插入内置和自定义的水平线

The above is the detailed content of How to insert built-in and custom horizontal lines in Word documents. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yundongfang.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!