Object: Application.ActiveDocument.Links.Item(index).href
Reference:
This function will return the value of the href for the index value of the link received.
The href for Links.item(2) for this page is "../TopicIndex.htm"
This is also called the destination anchor. It shows the destination that will be reached when the user clicks on it.
Function GetLinkhref(ByVal i As Integer) As String 'Tested 20090208 On Error GoTo errHandler1 GetLinkhref = _ Application.ActiveDocument.Links. _ Item(i).href Exit Function errHandler1: 'Notify user of failure. MsgBox "GetLinkhref has failed", _ vbCritical, "Function Failure" End Function