CommandBarPopup Object

Multiple objects

Represents a pop-up control on a command bar.

Using the CommandBarPopup Object

Use Controls(index), where index is the number of the control, to return a CommandBarPopup object. (The Type property of the control must be msoControlPopup, msoControlGraphicPopup, msoControlButtonPopup, msoControlSplitButtonPopup, or msoControlSplitButtonMRUPopup.)

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

Set myControl = Application.CommandBars.FindControl _
(Type:=msoControlPopup, Tag:="Graphics")


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.

Properties | Application Property | BeginGroup Property | BuiltIn Property | Caption Property | CommandBar Property | Controls Property | Creator Property | DescriptionText Property | Enabled Property | Height Property | HelpContextId Property | HelpFile Property | Id Property | Index Property | IsPriorityDropped Property | Left Property | OLEMenuGroup Property | OLEUsage Property | OnAction Property | Parameter Property | Parent Property | Priority Property | Tag Property | TooltipText Property | Top Property | Type Property | Visible Property | Width Property

Methods | Copy Method | Delete Method | Execute Method | Move Method | Reset Method | SetFocus Method

Parent Objects

Child Objects | CommandBar Object | CommandBarControls Object