Selecting word without space for underlining

J

John

Problem: Selecting word without space for underlining

Word 2003

When you double click on a word, it selects the entire word and the following space.
When you then click on the underline button, it underlines the entire word and the following space.
This is annoying since you do not want the following space underlined.
How do you select just the word and not the following space?
Is there a ctrl double click, whatever, to do this?
Thank you for any feedback.
 
J

JoAnn Paules [MVP]

Highlight the text you want underlined (spaces and all). Format - Font -
change the underline style to Words only.

If you do that often, you could create a macro. I don't often do macros but
even I could create that one. :)

--

JoAnn Paules
MVP Microsoft [Publisher]



Problem: Selecting word without space for underlining

Word 2003

When you double click on a word, it selects the entire word and the
following space.
When you then click on the underline button, it underlines the entire word
and the following space.
This is annoying since you do not want the following space underlined.
How do you select just the word and not the following space?
Is there a ctrl double click, whatever, to do this?
Thank you for any feedback.
 
G

Greg Maxey

John,

For whatever screwball reason, to Word, a word is the word and the trailing space. Still with my version of Word2003 with View>Options>Compatibility set to Word2003 default, the behavior that you describe does not occur (i.e., while the word and space is selected, only the word is underlined). If your compatibility options are set to Word2003, then I can't explain the behavior that you are seeing.

You could assign the following to a keyboard shortcut as a work around:

Sub myCustomClick()
Selection.Expand Unit:=wdWord
If Selection.Characters.Last = " " Then
Selection.End = Selection.End - 1
End If
Selection.Font.Underline = wdUnderlineSingle
End Sub

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.
Problem: Selecting word without space for underlining

Word 2003

When you double click on a word, it selects the entire word and the following space.
When you then click on the underline button, it underlines the entire word and the following space.
This is annoying since you do not want the following space underlined.
How do you select just the word and not the following space?
Is there a ctrl double click, whatever, to do this?
Thank you for any feedback.
 
S

Suzanne S. Barnhill

You could use Word Underline instead of Underline (Ctrl+Shift+W or add a
toolbar button).

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Problem: Selecting word without space for underlining

Word 2003

When you double click on a word, it selects the entire word and the
following space.
When you then click on the underline button, it underlines the entire word
and the following space.
This is annoying since you do not want the following space underlined.
How do you select just the word and not the following space?
Is there a ctrl double click, whatever, to do this?
Thank you for any feedback.
 
J

John

Apparently, the "Add space for underlines" was set in View>Options>Compatibility.
Unchecking it corrected the problem.

Curiously, hyperlinks also have the space problem, but there does not appear to be
a checkbox for "Add space for hyperlinks". Your macro would help for that situation.

Thank you for your help.
 
G

Greg Maxey

John,

I must admit that I fudged a bit in my reply. I do have "Add space for underlines" checked. It tested with it checked and unchecked and it didn't make any difference here. I can't explain why you had the problem you did. Gald you are fixed.

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.

Apparently, the "Add space for underlines" was set in View>Options>Compatibility.
Unchecking it corrected the problem.

Curiously, hyperlinks also have the space problem, but there does not appear to be
a checkbox for "Add space for hyperlinks". Your macro would help for that situation.

Thank you for your help.
 
S

Suzanne S. Barnhill

"Add space for underlines" refers to line spacing (adding some to ensure
that there is room for underlines to print in single-spaced text), not
spaces between words.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

John,

I must admit that I fudged a bit in my reply. I do have "Add space for
underlines" checked. It tested with it checked and unchecked and it didn't
make any difference here. I can't explain why you had the problem you did.
Gald you are fixed.

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.

Apparently, the "Add space for underlines" was set in
View>Options>Compatibility.
Unchecking it corrected the problem.

Curiously, hyperlinks also have the space problem, but there does not
appear to be
a checkbox for "Add space for hyperlinks". Your macro would help for that
situation.

Thank you for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top