View Single Post
 
Old 03-23-2017, 10:06 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

The following should do the job
Code:
Sub macro2()
Dim myRange As Range
    Set myRange = ActiveDocument.Content
    With myRange.Find
        Do While .Execute(FindText:="Roll Call", MatchCase:=True) 'Find the text
            myRange.InsertParagraphAfter 'insert a paragraph break after it
            myRange.End = myRange.End + 1 'move the end of the range beyond the paragraph break
            myRange.Collapse 0 'Collapse the range to its end
            ActiveDocument.Bookmarks.Add Name:="mark", Range:=myRange 'add a bookmark at the range
            myRange.Select 'optionally select it
            Exit Do 'Stop looking for the text
        Loop
    End With
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