HorizontalButtonCount Property
Sets or returns a Long representing the number of buttons in each row of buttons for a Web navigation bar set. Read/write. Long.
expression.HorizontalButtonCount
expression Required. An expression that returns a WebNavigationBarSet object.
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 pbnbAlignLeft.
With ActiveDocument.WebNavigationBarSets(1)
If .IsHorizontal = False Then
.ChangeOrientation pbNavBarOrientHorizontal
End If
.HorizontalButtonCount = 3
.HorizontalAlignment = pbnbAlignRight
End With