Please Note: This article is written for users of the following Microsoft Word versions: 2007 and 2010. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Adding Vertical Lines at the Sides of a Word.
Word allows you to easily add all sorts of flourishes to the text in your document. If you want to add vertical lines at the left and right of a word (perhaps for a page title), you can do so easily using any one of several different methods.
One way is to use the "pipe" character before and after your word. On most keyboards the pipe, or vertical bar, is a shifted version of the \ character. Type the pipe, a few spaces, the word, the same number of spaces, and then another pipe character. You can then center the paragraph.
If you are comfortable with the use of fields in a document, you could also try using the pipe character with the EQ field. Just insert a set of field braces (by pressing Ctrl+F9) and then making sure the field looks like this:
{eq \b \bc\| ( myword )}
When you collapse the field you end up with "myword" centered between the pipe characters.
Another method is to simply type your word and then format the paragraph so that it has borders at the left and right sides. Follow these steps:
Figure 1. The Borders and Shading dialog box.
At this point you should see the borders on both sides of the paragraph. However, they are probably too far from the text, as the paragraph extends all the way from the left margin to the right. (This means that the borders appear at the left and right margins.) Adjust the left and right indents of the paragraph so that the vertical lines move in closer to the center. You can also adjust the other settings for the paragraph formatting (like Space Before and Space After) to get the paragraph exactly where you want it.
You can select the word itself and raise it or lower it in relation to the bordering lines in this manner:
Figure 2. The Advanced tab of the Font dialog box.
Using the paragraph borders in this manner can require a lot of trial and error to get everything just right. If you use a table instead of a regular paragraph, the positioning is just a bit easier. Simply create a centered single-cell-table and make sure the cell is wide enough to contain the word you want. When you center the word in the table cell, you can then add borders to the left and right sides of the cell. Finally, you'll want to vertically adjust the word within the cell by following these steps:
Figure 3. The Cell tab of the Table Properties dialog box.
Finally, you could create the desired lines by simply drawing the vertical lines you want. This is particularly helpful if you want the lines to be "fancy" in some way—a way that can only be achieved through using the shapes available in Word. Draw two of the same lines, place your word in a text box, adjust the lines and text box so all elements are in the desired relative positions, and then select all three items and group them. This last step is particularly important since it will ensure that the relative positions of the elements don't move around later.
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (6828) applies to Microsoft Word 2007 and 2010. You can find a version of this tip for the older menu interface of Word here: Adding Vertical Lines at the Sides of a Word.
The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!
As you type a document, Word automatically converts your quote marks and apostrophes to "curly" versions that look more ...
Discover MoreFonts, by default, come with one or more styles that define variations of how that font is displayed in your document. ...
Discover MoreWant to know exactly how far something on the ruler is from the left and right margins of your document? It's easy to ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
2018-02-22 01:49:39
Sainath Kari
It worked for me...Thank you Mr.Allen
2017-09-29 08:03:59
Michael Wibben
Not sure if it's in earlier versions, but there is also a tab stop that adds a vertical line as you type. If you use it, you can add a line anywhere. It's called a bar tab and is available both in the selection options at the left side of the top ruler OR in the Tab dialog box.
2013-04-29 13:43:26
Barry
You "collapse the field" by hitting F9. This closes the "source code" for the field and instead displays its results.
2013-04-29 13:36:01
Maxipro
I find the instruction "Collapse the field" a bit vague. What needs to be done actually?
What I did was after keying {eq b bc| ( myword )}, I clicked the print preview button in Word 2010 and only then saw "myword" centred between two pipe characters.
Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.
Visit the WordTips channel on YouTube
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments