Hi Hari,
probably, you are looking for something like this:
Sub Makro17()
Dim rTmp As Range
Set rTmp = ActiveDocument.Range
resetsearch
With rTmp.Find
.Text = "<Sub>"
.MatchWildcards = True
While .Execute
rTmp.Select
Selection.Bookmarks("\para").Select
Selection.Font.Bold = True
Wend
End With
resetsearch
End Sub
Public Sub ResetSearch()
With Selection.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
' plus some more
.Execute
End With
End Sub
Which means:
reset search options
search for "sub" as a whole word,
select the paragraph it is in,
format the selection as bold
reset search options
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
Hari Prasadh - 24 Jan 2005 05:45 GMT
Hi Helmut,
Thnx a lot for your post.

Signature
Thanks a lot,
Hari
India
> Hi Hari,
> probably, you are looking for something like this:
[quoted text clipped - 48 lines]
> Word XP, Win 98
> http://word.mvps.org/