I found this code on the internet. I thought it would delete all of the character styles in a document. It doesn’t. Does anyone know a way to do that?
Thanks.
Jerry
Dim aStl As Style
Dim rDcm As Range
Set rDcm = ActiveDocument.Range
For Each aStl In ActiveDocument.styles
If aStl.Type = wdStyleTypeCharacter And aStl “Default Paragraph Font” Then
With rDcm.Find
.Style = aStl
While .Execute
rDcm.Select
ActiveDocument.styles(aStl).Delete
Wend
End With
End If
Next