R
rob nobel
Hi Brian, I used the following, but sorry I can't help you with it as I'm
fairly new at all this VBA stuff in Word.
Sub DeleteSpellingErrors()
Dim oPara As Paragraph
Dim oSpellingSuggestions As SpellingSuggestions
Set oPara = ActiveDocument.Paragraphs(1)
Do Until oPara.Range.End = ActiveDocument.Range.End
Set oSpellingSuggestions = oPara.Range.GetSpellingSuggestions
If oSpellingSuggestions.SpellingErrorType = wdSpellingNotInDictionary
Then
oPara.Range.Delete
Else
Set oPara = oPara.Next
End If
Application.StatusBar = CStr(Int(100 * _
oPara.Range.End / ActiveDocument.Range.End)) & "% complete"
Loop
End Sub
Good luck,
Rob
fairly new at all this VBA stuff in Word.
Sub DeleteSpellingErrors()
Dim oPara As Paragraph
Dim oSpellingSuggestions As SpellingSuggestions
Set oPara = ActiveDocument.Paragraphs(1)
Do Until oPara.Range.End = ActiveDocument.Range.End
Set oSpellingSuggestions = oPara.Range.GetSpellingSuggestions
If oSpellingSuggestions.SpellingErrorType = wdSpellingNotInDictionary
Then
oPara.Range.Delete
Else
Set oPara = oPara.Next
End If
Application.StatusBar = CStr(Int(100 * _
oPara.Range.End / ActiveDocument.Range.End)) & "% complete"
Loop
End Sub
Good luck,
Rob