B
buzzard
I found this code in the Word 2000 vba help file that makes a list at
the end of the document of all the addresses of the hyperlinks in the
document
Set myRange = ActiveDocument _
.Range(Start:=ActiveDocument.Content.End - 1)
Count = 0
For Each aHyperlink In ActiveDocument.Hyperlinks
Count = Count + 1
With myRange
'.InsertAfter "Hyperlink #" & Count & vbTab
.InsertAfter aHyperlink.Address
.InsertParagraphAfter
End With
Next aHyperlink
I"ve been using this without problems, but I need to be able to tweak
it so that it lists not only the hyperlink address but also the
subaddress. I don't really understand VBA very well, but so far I've
been able to figure out a way to get stuff done with it. Part of the
fun is being able to figure it out for yourself, but in this case, I
just haven't been able to figure this out even after a couple of hours
of searching the Internet. .
the end of the document of all the addresses of the hyperlinks in the
document
Set myRange = ActiveDocument _
.Range(Start:=ActiveDocument.Content.End - 1)
Count = 0
For Each aHyperlink In ActiveDocument.Hyperlinks
Count = Count + 1
With myRange
'.InsertAfter "Hyperlink #" & Count & vbTab
.InsertAfter aHyperlink.Address
.InsertParagraphAfter
End With
Next aHyperlink
I"ve been using this without problems, but I need to be able to tweak
it so that it lists not only the hyperlink address but also the
subaddress. I don't really understand VBA very well, but so far I've
been able to figure out a way to get stuff done with it. Part of the
fun is being able to figure it out for yourself, but in this case, I
just haven't been able to figure this out even after a couple of hours
of searching the Internet. .