Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Dougmeister Dougmeister is offline
external usenet poster
 
Posts: 4
Default Regular expressions: replace "w1 w2 w3" with "w1 w2 bw3/b"

I want to make every occurance of a word in BOLD type when it comes after two
specific words.

I.e.:
"status of Completed" - "status of bCompleted/b"

(last word is in bold)
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom[_3_] Stefan Blom[_3_] is offline
external usenet poster
 
Posts: 6,897
Default Regular expressions: replace "w1 w2 w3" with "w1 w2 bw3/b"

You can do this without wildcards. Just manually format one occurrence of
"status of Completed" as desired (that is, add bold to "Completed") and copy
it to the clipboard. Then, in the Find and Replace dialog box, enter status
of Completed in the "Find what" box, and in the "Replace with" box, type ^c.
Click Replace All.

--
Stefan Blom
Microsoft Word MVP



"Dougmeister" wrote in message
...
I want to make every occurance of a word in BOLD type when it comes after
two
specific words.

I.e.:
"status of Completed" - "status of bCompleted/b"

(last word is in bold)



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Regular expressions: replace "w1 w2 w3" with "w1 w2 bw3/b"

If there are enough different possible words such as "Completed" to make
it worthwhile,

a. Two steps would probably do it unless you need to preserve some
existing formatting - something like
1. find
(status of )(*)
replace with
\1\2
formatted in bold

2. find
(status of)
formatted in bold
replace with
\1
formatted not bold

b. If you needed to preserve formatting you could try to choose some
formatting that isn't currently used, e.g. if all text is in the
Automatic colour, and add a step, e.g.

1. find
(status of )(*)
replace with
\1\2
Text color: red

2. find
(status of)
text color: red
replace with
\1
text color: Auto

3. find

text color: red
replace with

Bold, text color: Auto

Peter Jamieson

http://tips.pjmsn.me.uk

On 13/11/2009 20:39, Dougmeister wrote:
I want to make every occurance of a word in BOLD type when it comes after two
specific words.

I.e.:
"status of Completed" - "status ofbCompleted/b"

(last word is in bold)

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Find" finds text but "Replace" doesn't Eric Microsoft Word Help 21 November 11th 09 06:47 AM
I can't "Open" a downloaded template. Only "Save" and "Cancel" Dave Microsoft Word Help 1 April 4th 08 02:28 PM
What does "char" "char1" "char2" mean in styles in Word? Li Microsoft Word Help 2 September 5th 07 03:22 PM
The "Symbol" under "Insert" disappeared and replaced by "Number" Eling Microsoft Word Help 3 September 13th 06 03:29 PM
"find" and "search/replace" modes bettysue Microsoft Word Help 5 June 29th 06 08:15 PM


All times are GMT +1. The time now is 05:00 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"