Menu - Dividers? Should be a simple question

tembenite

Registered User.
Local time
Today, 14:22
Joined
Feb 10, 2005
Messages
38
How do you create dividers in the menu's you create, dividing the menu choices into "Groups"? Most standard menu's have them (lines seperating two different groups). I've searched the VBA help files, and this forum, but can't seem to find any reference to them. I'm probably just searching by the wrong search terms. Thanks!
 
I do not know how to do it with VBA but if right click on the toolbar and choose the Customize option you can then right click where you want to insert a separator and choose the "Begin a Group" option to insert one. Just repeat those steps and deselect the "Begin a Group" option to remove a group separator.
 
Set the CommandBarControl.BeginGroup property to True. Here's an incomplete snippet that builds one CommandBarControl...

Code:
   Set cbc = .CommandBar.Controls.Add(msoControlButton)
   With cbc
      .Caption = "&System Settings..."
      .OnAction = "OpenSettingsForm"
[COLOR=DarkRed]      .BeginGroup = True[/COLOR]
   End With
 

Users who are viewing this thread

Back
Top Bottom