WebNavigationBarSet.HorizontalButtonCount property (Publisher)
Sets or returns a Long representing the number of buttons in each row of buttons for a web navigation bar set. Read/write Long.
Syntax
expression.HorizontalButtonCount
expression A variable that represents a WebNavigationBarSet object.
Return value
Long
Remarks
Returns "Access denied" if IsHorizontal = False for the specified WebNavigationBarSet object. Use the ChangeOrientation method to set the orientation of the web navigation bar set to horizontal first before setting the HorizontalButtonCount property.
Example
The following example returns the first web navigation bar set from the active document, changes the orientation to horizontal if necessary, sets the HorizontalButtonCount property to 3, and then sets the HorizontalAlignment property to pbnbAlignRight.
With ActiveDocument.WebNavigationBarSets(1)
If .IsHorizontal = False Then
.ChangeOrientation pbNavBarOrientHorizontal
End If
.HorizontalButtonCount = 3
.HorizontalAlignment = pbnbAlignRight
End With
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.