Forum Discussion
JennyT2070
Aug 14, 2025Copper Contributor
Styles set but with Direct Formatting
Styles are predefined in a document template but as users started using it, they like to add small direct formatting over the text using the style. For examples Style A has font size of 10 and af...
Kidd_Ip
Aug 16, 2025MVP
How about using Marcos to detect direct formatting:
Sub FindDirectFormatting()
Dim para As Paragraph
For Each para In ActiveDocument.Paragraphs
If para.Range.Style <> para.Range.get_Style() Then
Debug.Print "Paragraph with direct formatting: " & para.Range.Text
End If
Next para
End Sub