Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
46 lines (29 loc) · 1.08 KB

webnavigationbarset-showselected-property-publisher.md

File metadata and controls

46 lines (29 loc) · 1.08 KB
title keywords f1_keywords ms.prod api_name ms.assetid ms.date
WebNavigationBarSet.ShowSelected Property (Publisher)
vbapb10.chm8519696
vbapb10.chm8519696
publisher
Publisher.WebNavigationBarSet.ShowSelected
c8229f03-a043-a280-84f9-f75a430c3903
06/08/2017

WebNavigationBarSet.ShowSelected Property (Publisher)

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

Syntax

expression. ShowSelected

_expression_A variable that represents a WebNavigationBarSet object.

Return Value

Boolean

Example

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