View Single Post
 
Old 11-22-2025, 03:17 AM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,523
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

It would be helpful if you fully described what you're trying to achieve. This constant back & forth is a major time-waster.
Code:
Sub RemovePeriod()
Application.ScreenUpdating = False
With ActiveDocument.Range.Find
  .ClearFormatting: .Replacement.ClearFormatting: .Style = "LeftTitle"
  .Execute FindText:=".^p", ReplaceWith:="^p", Forward:=True, Wrap:=wdFindContinue, Format:=True, Replace:=wdReplaceAll
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote