View Single Post
 
Old 01-20-2021, 01:07 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by gmaxey View Post
Paul, here both of those returned the same result the OP is seeing.
In my testing, both restored the Normal formatting for the entire document.

If I misread the OP's requirement and the italics are to be retained, that's as simple as:
Code:
Public Sub Flatten()
ActiveDocument.Range.Style = wdStyleNormal
End Sub
or:
Code:
Public Sub Flatten()
ActiveDocument.Range.ParagraphFormat.Reset
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote