View Single Post
  #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)