View Single Post
 
Old 11-13-2023, 01:56 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,138
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Define the range, then format the range e.g.
Code:
Sub StartEnd()
'Format paragraphs between Start and End
Dim oRng As Range
  Set oRng = ActiveDocument.Range
    oRng.Start = ActiveDocument.Range.Paragraphs(3).Range.Start
    oRng.End = ActiveDocument.Range.End
    oRng.Style = "MyStyle"
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote