View Single Post
 
Old 06-02-2017, 08:14 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
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

Without seeing your macro it is difficult to advise how to add to it. Basically you set a bookmark to the range that you have found as you add it to your log.

To go to the bookmark - let's assume you have added bookmarks bm1 to bm10 i.e a number following 'bm'. Then the following macro will prompt for a number and then select the numbered bookmark and delete the bookmark (but not its content).

Code:
Sub GetBM()
Dim sBM As String
    On Error GoTo lbl_Exit
    sBM = InputBox("Go to which bookmark number")
    With ActiveDocument.Bookmarks("bm" & sBM)
        .Range.Select
        .Delete
    End With
lbl_Exit:
    Exit Sub
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