View Single Post
 
Old 04-21-2018, 08:33 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,106
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 of
Default

Assuming it appears only once in the document, and each line of your assessment is terminated with a paragraph break and not a line break then

Code:
Dim orng As Range
    Set orng = ActiveDocument.Range
    With orng
        .Start = .Start + InStr(orng, "Assessment")
        .MoveStart wdParagraph
        .End = .Start + InStr(orng, "Diagnosis") - 2
        .Style = "List Number"
    End With
    Set orng = Nothing
__________________
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