DeleteSetAndInstances Method

Microsoft Publisher Visual Basic

DeleteSetAndInstances Method

Deletes a Web navigation bar set and all instances of it in the current document.

expression.DeleteSetAndInstances

expression    Required. An expression that returns a WebNavigationBarSet object.

Example

The following example iterates through the WebNavigationBarSets collection and deletes each set from the active document.

    Dim objWebNavBarSet As WebNavigationBarSet
For Each objWebNavBarSet In ActiveDocument.WebNavigationBarSets
    objWebNavBarSet.DeleteSetAndInstances
Next objWebNavBarSet