WebNavigationBarSets Property

Microsoft Publisher Visual Basic

WebNavigationBarSets Property

Returns a WebNavigationBarSets object representing a collection of all WebNavigationBarSet objects in the specified document. Read-only.

expression.WebNavigationBarSets

expression    Required. An expression that returns a Document object.

Example

The following example sets an object variable to the collection of Web navigation bar sets in the active document and adds a new navigation bar set to it.

Dim objWebNavBarSets As WebNavigationBarSets

Set objWebNavBarSets = ActiveDocument.WebNavigationBarSets
objWebNavBarSets.AddSet _
    Name:="WebNavBarSet1", _
    Design:=pbnbDesignBracket, _
    AutoUpdate:=True