Global underlining

  • Thread starter Thread starter Nanapat
  • Start date Start date
N

Nanapat

I need to underline all mentions of Sections and their numbers globally
throughout my document (e.g., Section 1, Section 1.2, Section 4.2.1(a),
etc.). How can I do this?
 
Nanapat said:
I need to underline all mentions of Sections and their numbers globally
throughout my document (e.g., Section 1, Section 1.2, Section 4.2.1(a),
etc.). How can I do this?

I am assuming you are using Word's automatic numbering. You need to edit
your numbering scheme and click on Font under Numbering Format. Depending on
your version of Word, this option is under the Define Numbering List. For me
in Office 2007 it is under Define New Multilevellist. This will underline
Section 1 only and not any text which follows the number. To underline the
rest of the text you will need to modify the style which I am assuming is
Heading 1. Hope this helps.
 
Okay, here's what I came up with using wildcards:

Find: Section <*>[!.]

Replace with: ^& ("underline" turned on)

This finds and underlines "Section" plus the characters that follow (e.g.,
Section 4.2.1) up to the next space. The problem is, the space after the
"4.2.1" is also being underlined. I have tried but cannot figure out how to
avoid this. Thank you for any help!
 
The wildcard character * is far too broad a brush to deal with this issue.
Try searching instead for
Section [0-9.a-z \(\)]{1,}
replace with ^&

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Okay, here's what I came up with using wildcards:

Find: Section <*>[!.]

Replace with: ^& ("underline" turned on)

This finds and underlines "Section" plus the characters that follow
(e.g., Section 4.2.1) up to the next space. The problem is, the
space after the "4.2.1" is also being underlined. I have tried but
cannot figure out how to avoid this. Thank you for any help!

Suzanne S. Barnhill said:
You can. You just need to figure out how to use the wildcards. See
http://www.gmayor.com/replace_using_wildcards.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
 
Graham, thank you for your response. I tried your formula but it underlines
"Section x.x.x" plus several words after that. If you think I should try
something else, I'd be grateful for any advice. THis really has me stumped!

Graham Mayor said:
The wildcard character * is far too broad a brush to deal with this issue.
Try searching instead for
Section [0-9.a-z \(\)]{1,}
replace with ^&

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Okay, here's what I came up with using wildcards:

Find: Section <*>[!.]

Replace with: ^& ("underline" turned on)

This finds and underlines "Section" plus the characters that follow
(e.g., Section 4.2.1) up to the next space. The problem is, the
space after the "4.2.1" is also being underlined. I have tried but
cannot figure out how to avoid this. Thank you for any help!

Suzanne S. Barnhill said:
You can. You just need to figure out how to use the wildcards. See
http://www.gmayor.com/replace_using_wildcards.htm

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

I'm so sorry my question wasn't clear. The Sections and numbers I
need underlined are not headings or any auto numbered style. They
are within body
text paragraphs (e.g., "please see Section 1.4.2"). I thought
maybe I could
use search/replace w/ wildcards and underline all mentions of
"Section xxx"
throughout the document, but I"m not sure how to go about it.
Thanks!

:

I need to underline all mentions of Sections and their numbers
globally throughout my document (e.g., Section 1, Section 1.2,
Section 4.2.1(a), etc.). How can I do this?
 
It seems I allowed a space to creep into the search string in the square
brackets :(
Try
Section [0-9.a-z\(\)]{1,}

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Graham, thank you for your response. I tried your formula but it
underlines "Section x.x.x" plus several words after that. If you
think I should try something else, I'd be grateful for any advice.
THis really has me stumped!

Graham Mayor said:
The wildcard character * is far too broad a brush to deal with this
issue. Try searching instead for
Section [0-9.a-z \(\)]{1,}
replace with ^&

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Okay, here's what I came up with using wildcards:

Find: Section <*>[!.]

Replace with: ^& ("underline" turned on)

This finds and underlines "Section" plus the characters that follow
(e.g., Section 4.2.1) up to the next space. The problem is, the
space after the "4.2.1" is also being underlined. I have tried but
cannot figure out how to avoid this. Thank you for any help!

:

You can. You just need to figure out how to use the wildcards. See
http://www.gmayor.com/replace_using_wildcards.htm

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

I'm so sorry my question wasn't clear. The Sections and numbers I
need underlined are not headings or any auto numbered style. They
are within body
text paragraphs (e.g., "please see Section 1.4.2"). I thought
maybe I could
use search/replace w/ wildcards and underline all mentions of
"Section xxx"
throughout the document, but I"m not sure how to go about it.
Thanks!

:

I need to underline all mentions of Sections and their numbers
globally throughout my document (e.g., Section 1, Section 1.2,
Section 4.2.1(a), etc.). How can I do this?
 
Graham, thank you so much! Your solution worked perfectly and will save me a
lot of time in the future.

If I may ask you this, could you tell me why "{1,}" is necessary in this
formula, and also why there is a comma after "1" when nothing follows it? I
thought the comma was just a separator.

Graham Mayor said:
It seems I allowed a space to creep into the search string in the square
brackets :(
Try
Section [0-9.a-z\(\)]{1,}

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Graham, thank you for your response. I tried your formula but it
underlines "Section x.x.x" plus several words after that. If you
think I should try something else, I'd be grateful for any advice.
THis really has me stumped!

Graham Mayor said:
The wildcard character * is far too broad a brush to deal with this
issue. Try searching instead for
Section [0-9.a-z \(\)]{1,}
replace with ^&

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


Nanapat wrote:
Okay, here's what I came up with using wildcards:

Find: Section <*>[!.]

Replace with: ^& ("underline" turned on)

This finds and underlines "Section" plus the characters that follow
(e.g., Section 4.2.1) up to the next space. The problem is, the
space after the "4.2.1" is also being underlined. I have tried but
cannot figure out how to avoid this. Thank you for any help!

:

You can. You just need to figure out how to use the wildcards. See
http://www.gmayor.com/replace_using_wildcards.htm

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

I'm so sorry my question wasn't clear. The Sections and numbers I
need underlined are not headings or any auto numbered style. They
are within body
text paragraphs (e.g., "please see Section 1.4.2"). I thought
maybe I could
use search/replace w/ wildcards and underline all mentions of
"Section xxx"
throughout the document, but I"m not sure how to go about it.
Thanks!

:

I need to underline all mentions of Sections and their numbers
globally throughout my document (e.g., Section 1, Section 1.2,
Section 4.2.1(a), etc.). How can I do this?
 
All is explained on my web site to which Suzanne referred you earlier;
however, the bracketed {1,} tells the search to look for at least one of the
characters in the square brackets i.e. your number sequence.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Graham, thank you so much! Your solution worked perfectly and will
save me a lot of time in the future.

If I may ask you this, could you tell me why "{1,}" is necessary in
this formula, and also why there is a comma after "1" when nothing
follows it? I thought the comma was just a separator.

Graham Mayor said:
It seems I allowed a space to creep into the search string in the
square brackets :(
Try
Section [0-9.a-z\(\)]{1,}

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Graham, thank you for your response. I tried your formula but it
underlines "Section x.x.x" plus several words after that. If you
think I should try something else, I'd be grateful for any advice.
THis really has me stumped!

:

The wildcard character * is far too broad a brush to deal with this
issue. Try searching instead for
Section [0-9.a-z \(\)]{1,}
replace with ^&

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


Nanapat wrote:
Okay, here's what I came up with using wildcards:

Find: Section <*>[!.]

Replace with: ^& ("underline" turned on)

This finds and underlines "Section" plus the characters that
follow (e.g., Section 4.2.1) up to the next space. The problem
is, the space after the "4.2.1" is also being underlined. I have
tried but cannot figure out how to avoid this. Thank you for any
help!

:

You can. You just need to figure out how to use the wildcards.
See http://www.gmayor.com/replace_using_wildcards.htm

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

I'm so sorry my question wasn't clear. The Sections and
numbers I need underlined are not headings or any auto numbered
style. They are within body
text paragraphs (e.g., "please see Section 1.4.2"). I thought
maybe I could
use search/replace w/ wildcards and underline all mentions of
"Section xxx"
throughout the document, but I"m not sure how to go about it.
Thanks!

:

I need to underline all mentions of Sections and their numbers
globally throughout my document (e.g., Section 1, Section 1.2,
Section 4.2.1(a), etc.). How can I do this?
 
Thank you for all your help.

Graham Mayor said:
All is explained on my web site to which Suzanne referred you earlier;
however, the bracketed {1,} tells the search to look for at least one of the
characters in the square brackets i.e. your number sequence.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Graham, thank you so much! Your solution worked perfectly and will
save me a lot of time in the future.

If I may ask you this, could you tell me why "{1,}" is necessary in
this formula, and also why there is a comma after "1" when nothing
follows it? I thought the comma was just a separator.

Graham Mayor said:
It seems I allowed a space to creep into the search string in the
square brackets :(
Try
Section [0-9.a-z\(\)]{1,}

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


Nanapat wrote:
Graham, thank you for your response. I tried your formula but it
underlines "Section x.x.x" plus several words after that. If you
think I should try something else, I'd be grateful for any advice.
THis really has me stumped!

:

The wildcard character * is far too broad a brush to deal with this
issue. Try searching instead for
Section [0-9.a-z \(\)]{1,}
replace with ^&

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


Nanapat wrote:
Okay, here's what I came up with using wildcards:

Find: Section <*>[!.]

Replace with: ^& ("underline" turned on)

This finds and underlines "Section" plus the characters that
follow (e.g., Section 4.2.1) up to the next space. The problem
is, the space after the "4.2.1" is also being underlined. I have
tried but cannot figure out how to avoid this. Thank you for any
help!

:

You can. You just need to figure out how to use the wildcards.
See http://www.gmayor.com/replace_using_wildcards.htm

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

I'm so sorry my question wasn't clear. The Sections and
numbers I need underlined are not headings or any auto numbered
style. They are within body
text paragraphs (e.g., "please see Section 1.4.2"). I thought
maybe I could
use search/replace w/ wildcards and underline all mentions of
"Section xxx"
throughout the document, but I"m not sure how to go about it.
Thanks!

:

I need to underline all mentions of Sections and their numbers
globally throughout my document (e.g., Section 1, Section 1.2,
Section 4.2.1(a), etc.). How can I do this?
 

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

Back
Top