View Single Post
 
Old 11-02-2013, 08:55 PM
fumei fumei is offline Windows 7 64bit Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

One way (there are alternatives) would be:
Code:
Sub RemoveAboveBX()
Dim oPara As Paragraph
For Each oPara In ActiveDocument.Paragraphs
   If InStr(oPara.Range.Text, "BX") > 0 Then
      oPara.Previous.Range.Delete
   End If
Next
End Sub
Reply With Quote