CommandBarPopup Object
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 |
|---|
|
See also:
| index |
Note