Table of contents
Collapse the table of content
Expand the table of content

WebNavigationBarSet.ShowSelected Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

True if the selected button is highlighted for the specified WebNavigationBarSet object. Read/write Boolean.


expression. ShowSelected

_expression_A variable that represents a WebNavigationBarSet object.

Return Value



The following example adds a new Web navigation bar to the active document, adds it to every page, and then sets the ShowSelected property to False so that the selected button will not be highlighted in the navigation bar.

Dim objWebNav As WebNavigationBarSet 
Set objWebNav = ActiveDocument.WebNavigationBarSets.AddSet(Name:="newNavBar") 
With objWebNav 
 .AddToEveryPage Left:=10, Top:=10 
 .ButtonStyle = pbnbButtonStyleSmall 
 .ShowSelected = False 
End With
© 2018 Microsoft