AddWebNavigationBar Method

Microsoft Publisher Visual Basic

Left   Required Variant. The position of the left edge of the shape representing the Web navigation bar set.

Top   Required Variant. The position of the top edge of the shape representing the Web navigation bar set.

Width   Optional Variant. The width of the shape representing the Web navigation bar set.

Remarks

The AddWebNavigationBar method does not create a new Web navigation bar set. It adds an existing set from the WebNavigationBarSets collection with the name passed in as the Name parameter.

Example

The following example adds a WebNavigationBarSet to the active document.

Dim shpShape As Shape
ActiveDocument.WebNavigationBarSets.AddSet Name:="NavBar", AutoUpdate:=True
Set shpShape = ActiveDocument.Pages(1).Shapes.AddWebNavigationBar _
    (Name:="NavBar", Left:=10, Top:=25)