View Single Post
 
Old 03-24-2024, 09:46 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

In that case you need to examine every paragraph with a loop
Code:
Sub WipeLocalFormats()
  Dim aPara As Paragraph
  For Each aPara In ActiveDocument.Paragraphs
    With aPara.Range.Font
      If .Bold = wdUndefined Or .Italic = wdUndefined Then .Reset
    End With
  Next aPara
End Sub
This assumes the underlying paragraph style on the 'mixed' paragraphs is non-bold and non-italic.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote