Links Property
Returns a WebNavigationBarHyperlinks collection containing all of the hyperlinks in the specified Web navigation bar set. Read/write.
expression.Links
expression Required. An expression that returns a WebNavigationBarSet object.
Example
Use the Links property to return a WebNavigationBarHyperlinks property. This example returns the Web navigation bar hyperlinks of the first Web navigation bar set of the active document.
ActiveDocument.WebNavigationBarSets(1).Links
The following example adds a new Web navigation bar set to the active document, adds a hyperlink to the navigation bar, and then adds the navigation bar to every page of the publication that has the AddHyperlinkToWebNavbar property set to True or the Page.WebPageOptions.IncludePageOnNewWebNavigationBars property set to True.
With ActiveDocument.WebNavigationBarSets.AddSet(Name:="WebNavigationBarSet1")
With .Links
.Add Address:="www.microsoft.com", TextToDisplay:="Microsoft", Index:=1
End With
.AddToEveryPage Left:=10, Top:=10
End With