Continuous Loop
Can anyone help me figure out why this loop is not stopping?
Selection.Find.ClearFormatting
With Selection.Find
.Text = "DO NOT PUBLISH ACTIVITY"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
While Selection.Find.Execute
Selection.MoveUp Unit:=wdLine, Count:=1
Selection.SelectRow
Selection.MoveDown Unit:=wdLine, Count:=3, Extend:=wdExtend
With Selection.Font
.Hidden = True
End With
Wend
Much appreciated!!!
|