05-29-2012, 04:07 AM
|
|
Administrator
|
|
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
|
|
Try the following macro:
Code:
Sub AddTags()
Dim Snt As Range
For Each Snt In ActiveDocument.Sentences
If InStr(Snt.Text, "<start level = ""4""> ") = 1 Then
Snt.InsertAfter "<end level = ""4""> "
End If
Next
End Sub
To use it, see: http://www.gmayor.com/installing_macro.htm
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|