CommandBarControl.BeginGroup Property

Office Developer Reference

Gets True if the specified command bar control appears at the beginning of a group of controls on the command bar. Read/write.

Aa432957.vs_note(en-us,office.12).gif  Note
The use of CommandBars in some Microsoft Office applications has been superseded by the new Ribbon user interface. For more information, search help for the keyword "Ribbon."

Syntax

expression.BeginGroup

expression   A variable that represents a CommandBarControl object.

Return Value
Boolean

Example
This example begins a new group with the last control on the active menu bar.

Visual Basic for Applications
  Set myMenuBar = CommandBars.ActiveMenuBar
Set lastMenu = myMenuBar _
    .Controls(myMenuBar.Controls.Count)
lastMenu.BeginGroup = True

See Also