WebNavigationBarSets.AddSet method (Publisher)
Adds a new WebNavigationBarSet object representing a web navigation bar set to the specified WebNavigationBarSets collection.
Syntax
expression.AddSet (Name, Design, AutoUpdate)
expression A variable that represents a WebNavigationBarSets object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Name | Required | String | The name of the web navigation bar to be added. This parameter must be unique. |
Design | Optional | PbWizardNavBarDesign | Specifies the navigation bar design scheme. |
AutoUpdate | Optional | Boolean | True if all pages with the AddHyperlinkToWebNavBar parameter (Pages.Add method) set to True are added as links to the navigation bar, and the navigation bar is kept updated. |
Return value
WebNavigationBarSet
Remarks
The Name parameter must be unique to avoid a run-time error.
Example
The following example adds a WebNavigationBarSet object to the WebNavigationBarSets collection of the active document, and then sets some properties.
Dim objWebNavBarSet As WebNavigationBarSet
Set objWebNavBarSet = ActiveDocument.WebNavigationBarSets.AddSet( _
Name:="WebNavBarSet1", _
Design:=pbnbDesignAmbient, _
AutoUpdate:=True)
With objWebNavBarSet
.AddToEveryPage Left:=50, Top:=10
.ButtonStyle = pbnbDesignTopLine
.ChangeOrientation pbNavBarOrientHorizontal
End With
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.