J
John Svendsen
Hi All,
I need to delete words that are marked in red. So I put together this little
macro, but it is very, very slow!!!
Sub DeleteWordsInRed()
Selection.WholeStory
For xxx = Selection.Words.Count To 2 Step -1
If Selection.Words(xxx).Font.Color = wdColorRed Then
Selection.Words(xxx).Select
Selection.Delete
Selection.WholeStory
End If
Next
End Sub
Can someone give me a clue on how to speed this up?
Thanks os much, JS
I need to delete words that are marked in red. So I put together this little
macro, but it is very, very slow!!!
Sub DeleteWordsInRed()
Selection.WholeStory
For xxx = Selection.Words.Count To 2 Step -1
If Selection.Words(xxx).Font.Color = wdColorRed Then
Selection.Words(xxx).Select
Selection.Delete
Selection.WholeStory
End If
Next
End Sub
Can someone give me a clue on how to speed this up?
Thanks os much, JS