View Single Post
 
Old 07-30-2020, 06:33 AM
in7el in7el is offline Windows 10 Office 2019
Novice
 
Join Date: Jul 2020
Posts: 5
in7el is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
Try this code which toggles from one to the other
Code:
Sub ToggleURLs()
  Dim aHL As Hyperlink
  For Each aHL In ActiveDocument.Hyperlinks
    If aHL.TextToDisplay = "url" Then
      aHL.TextToDisplay = aHL.Address
    Else
      aHL.TextToDisplay = "url"
    End If
  Next aHL
End Sub
Legend thanks a lot
Reply With Quote