View Single Post
 
Old 07-10-2018, 03:40 AM
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

How about

Code:
Sub RemoveBracketedHyperlinks()
Dim hLink As Hyperlink
 Dim oRng As Range
   On Error Resume Next

     For Each hLink In ActiveDocument.Hyperlinks
        Set oRng = hLink.Range
        oRng.Start = oRng.Start - 1
        oRng.End = oRng.End + 1
        If oRng.Characters.First = "(" And _
           oRng.Characters.Last = ")" Then
            oRng.Delete
        End If
    Next hLink
lbl_Exit:
    Set hLink = Nothing
    Set oRng = Nothing
    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