View Single Post
 
Old 01-31-2023, 02:49 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,144
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

It gets more complicated without access to the document, however the following may work for you. It bookmarks from CEO: to the next full stop.
Code:
Sub Macro1()
Dim orng As Range
Dim i As Long
    Set orng = ActiveDocument.Range
    With orng.Find
        i = 1
        Do While .Execute(findText:="CEO:*.", MatchWildcards:=True)
            orng.Bookmarks.Add "mark" & i
            i = i + 1
            orng.Collapse 0
        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