View Single Post
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
ikovy ikovy is offline
external usenet poster
 
Posts: 6
Default Visual Basic for Word - Code for Footnotes

I have the visual basic code below, but I need it to work for footnotes. Any
help, thanks.


Sub ListHyperlinks()
Dim srcDoc As Document, destDoc As Document
Dim HL As Hyperlink

Set srcDoc = ActiveDocument
Set destDoc = Documents.Add

For Each HL In srcDoc.Hyperlinks
destDoc.Range.InsertAfter _
HL.TextToDisplay & vbTab & HL.Address & vbCr
Next

destDoc.Range.ConvertToTable
End Sub