Hi
What I want to do is delete multiple paragraphs in a txt document with specific words the paragraph consist of 4 lines (repetitive) but the last word in the first line changes from p001 to p002 ect I have modded the macro is this correct
Line 1 I have successfully managed my team implementing the company process at all times poo1
Line 2 Proven track record for working under pressure at all times
Line 3 I am applying for the role, due to covering this for the last 4 years
Ect...
Repative line
Line 1 I have successfully managed my team implementing the company process at all times poo2
Line 2 Proven track record for working under pressure at all times
Line 3 I am applying for the role, due to covering this for the last 4 years
Sub DeleteParas()
Selection
.HomeKey wdStory
With .Find
.ClearFormatting
.Replacement.ClearFormatting
While .Execute(findText:="I have successfully managed my team, implementing the Company processes at all times p*^13", _
MatchWholeWord:=True)
Selection.Range.Paragraphs(1).Range.Delete
Wend
End With
End With
With Selection
.HomeKey wdStory
With .Find
.ClearFormatting
.Replacement.ClearFormatting
While .Execute(findText:="Proven track record for working and delivering under pressure,", _
MatchWholeWord:=True)
Selection.Range.Paragraphs(1).Range.Delete
Wend
End With
End With
With Selection
.HomeKey wdStory
With .Find
.ClearFormatting
.Replacement.ClearFormatting
While .Execute(findText:="I am applying for the role, due to covering this for the last 4 years", _
MatchWholeWord:=True)
Selection.Range.Paragraphs(1).Range.Delete
Wend
End With
End With
End Sub