Matching underlines on a page

What I am trying to do is create a line all the way (or at least most of the way) across the page, but then add a name to that part of the document and have the name underlined also.

In the attached document, I used Shift + Underscore to create an underline across part of the page, I then stopped the underline, typed a name, then continued with the line. I highlighted the name and used the underline icon to underline the name. It looks good on the document, but when you look at it in print preview or print it out, the line under the name is a little off and doesn't match up with the underline on rest of that line on the page.

Is there a way to have a name underlined, as well as have a line across the page and have it look like one long underline?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Out of curiosity, what version of Word/Office are you using?

I have 2013 installed and it looks like you wanted on my system!


print preview
It might depend on the printer driver. I can see the difference with mine (Canon).

Enter your text, using spaces or tabs around the word. Select all of it and use the Underline style dropdown in the Font dialogue to set the underlining (obviously avoiding the 'Words only' choice).

The underscore character looks the same as underlining a space in Print view, but is distinguishable in Print Preview.
Rob HensonFinance AnalystCommented:
I usually find it better to use a table and draw a border on the bottom edge of the table cell. You also then have more choice of line styles; dashed, solid double, variable double, coloured etc etc.

See attached amended document. On screen you can see the dotted lines forming the table cell, these won't print but the bottom border which is solid line will print. If you don't even want to see the dotted lines on screen you can hide the table grid lines. Put the cursor in the text in the cell and there will be a couple of extra tabs on the ribbon under heading Table Tools. Select the Layout tab and towards the left end there will be a button to "View grid lines". This toggles the grid lines on and off.

If this is for a header on the document, the table can be included in the header section of the page if so required, it will then repeat on all pages.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
contrainAuthor Commented:
I neglected to mention that I was trying this in both Word 2010 and Word 2016, but Rob Henson came up with the result I was looking for. By putting it in a table, I was able to underline the cell and it produced the printout with the underline I was looking for. Thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Word

From novice to tech pro — start learning today.