Hi Shakeel,
word is a fuzzy concept of fuzzy natural language...
is pretty difficult, as you would have to specify
all format properties
how do i detect and delete same words
that is the easiest part:
Sub Test5612()
Dim rWrd1 As Range
Dim rWrd2 As Range
For Each rWrd1 In ActiveDocument.Range.Words
For Each rWrd2 In ActiveDocument.Range.Words
If rWrd1.Text = rWrd2.Text And _
rWrd1.Start <> rWrd2.Start Then
rWrd2.Delete
End If
Next
Next
End Sub
--
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Vista Small Business, Office XP