OLEMenuGroup Property
MsoOLEMenuGroup
MsoOLEMenuGroup can be one of these MsoOLEMenuGroup constants. |
msoOLEMenuGroupContainer |
msoOLEMenuGroupEdit |
msoOLEMenuGroupFile |
msoOLEMenuGroupHelp |
msoOLEMenuGroupNone |
msoOLEMenuGroupObject |
msoOLEMenuGroupWindow |
Note This property is read-only for built-in controls.
Remarks
This property is intended to allow add-in applications to specify how their command bar controls will be represented in the Office application. If either the container or the server does not implement command bars, normal OLE menu merging will occur: the menu bar will be merged, as well as all the toolbars from the server, and none of the toolbars from the container. This property is relevant only for pop-up controls on the menu bar because menus are merged on the basis of their menu group category.
If both of the merging applications implement command bars, command bar controls are merged according to the OLEUsage property.
Example
This example checks the OLEMenuGroup property of a new custom pop-up control on the command bar named "Custom" and sets the property to msoOLEMenuGroupNone.
Set myControl = CommandBars("Custom").Controls _
.Add(Type:=msoControlPopup,Temporary:=False)
myControl.OLEMenuGroup = msoOLEMenuGroupNone
Applies to | CommandBarPopup Object