View Single Post
 
Old 08-29-2018, 09:36 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Try:
Code:
Sub Demo()
Dim Hlnk As Hyperlink, Para As Paragraph
With ActiveDocument.StoryRanges(wdFootnotesStory)
  For Each Hlnk In .Hyperlinks
    With Hlnk
      .TextToDisplay = Trim(.TextToDisplay)
      .Address = Trim(.Address)
      If .Range.Characters.Last.Next Like "[0-9A-Za-z(]" Then
        .Range.Characters.Last.Next.InsertBefore " "
      End If
    End With
  Next
  For Each Para In .Paragraphs
    With Para.Range
      Do While .Characters.Last.Previous.Text = " "
        .Characters.Last.Previous.Text = vbNullString
      Loop
    End With
  Next
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote