Represents a pop-up control on a command bar.

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."

Remarks

Every pop-up control contains a CommandBar object. To return the command bar from a pop-up control, apply the CommandBar property to the CommandBarPopup object.

Use Controls(index), whereis the number of the control, to return a CommandBarPopupobject. Note that the Typeproperty of the control must be msoControlPopup, msoControlGraphicPopup, msoControlButtonPopup, msoControlSplitButtonPopup, or msoControlSplitButtonMRUPopup.

Example

You can also use the FindControl method to return a CommandBarPopup object. The following example searches all command bars for a CommandBarPopup object whose tag is "Graphics."

Visual Basic for Applications
Set myControl = Application.CommandBars.FindControl _ (Type:=msoControlPopup, Tag:="Graphics")
Command Bar Popup Object commandbarpopup commandbarpopup object ofv return a command bar from a pop up control search all command bars for a command bar popup object use a pop-up control on a command bar

See also:

index