Command Bar Enumerations
| msoBarPosition | Specifies the position or behavior of a command bar. |
| msoBarProtection | Specifies how a command bar is protected from user customization. |
| msoBarRow | Specifies whether a command bar is in the first row or last row relative to other command bars. |
| msoBarType | Specifies the type of the command bar. |
| msoButtonState | Specifies the appearance of a command bar button control. |
| msoButtonStyle | Specifies the style of a command bar button. |
| msoComboStyle | Specifies whether the command bar combo box includes a label or not. |
| msoCommandBarButtonHyperlinkType | Specifies whether the command bar button is a hyperlink. |
| msoControlType | Specifies the type of the command bar control. |
| msoBarPosition Specifies the position or behavior of a command bar. |
| msoBarProtection Specifies how a command bar is protected from user customization. |
| msoBarRow Specifies whether a command bar is in the first row or last row relative to other command bars. |
| msoBarType Specifies the type of the command bar. |
| msoButtonState Specifies the appearance of a command bar button control. |
| msoButtonStyle Specifies the style of a command bar button. |
| msoComboStyle Specifies whether the command bar combo box includes a label or not. |
| msoCommandBarButtonHyperlinkType Specifies whether the command bar button is a hyperlink. |
| msoControlType Specifies the type of the command bar control. |
msoBarPosition |
| Specifies the position or behavior of a command bar. |
| msoBarBottom | Command bar is docked at the bottom of the application window. |
| msoBarFloating | Command bar floats on top of the application window. |
| msoBarLeft | Command bar is docked on the left side of the application window. |
| msoBarMenuBar | Command bar will be a menu bar (Macintosh only). |
| msoBarPopup | Command bar will be a shortcut menu. |
| msoBarRight | Command bar is docked on the right side of the application window. |
| msoBarTop | Command bar is docked at the top of the application window. |
| msoBarBottom |
| Command bar is docked at the bottom of the application window. |
| msoBarFloating |
| Command bar floats on top of the application window. |
| msoBarLeft |
| Command bar is docked on the left side of the application window. |
| msoBarMenuBar |
| Command bar will be a menu bar (Macintosh only). |
| msoBarPopup |
| Command bar will be a shortcut menu. |
| msoBarRight |
| Command bar is docked on the right side of the application window. |
| msoBarTop |
| Command bar is docked at the top of the application window. |
msoBarProtection |
| Specifies how a command bar is protected from user customization. |
| msoBarNoChangeDock | Docking setting cannot be changed (16) |
| msoBarNoChangeVisible | Command bar cannot be hidden (8) |
| msoBarNoCustomize | Command bar cannot be customized (1) |
| msoBarNoHorizontalDock | Command bar cannot be docked to the top or bottom (64) |
| msoBarNoMove | Command bar cannot be moved (4) |
| msoBarNoProtection | All aspects of command bar can be customized by user (0) |
| msoBarNoResize | Command bar cannot be resized (2) |
| msoBarNoVerticalDock | Command bar cannot be docked to the left or right (32) |
| msoBarNoChangeDock |
| Docking setting cannot be changed (16) |
| msoBarNoChangeVisible |
| Command bar cannot be hidden (8) |
| msoBarNoCustomize |
| Command bar cannot be customized (1) |
| msoBarNoHorizontalDock |
| Command bar cannot be docked to the top or bottom (64) |
| msoBarNoMove |
| Command bar cannot be moved (4) |
| msoBarNoProtection |
| All aspects of command bar can be customized by user (0) |
| msoBarNoResize |
| Command bar cannot be resized (2) |
| msoBarNoVerticalDock |
| Command bar cannot be docked to the left or right (32) |
| REMARKS |
| * These constants are additive which means you can apply several to the same commandbar. |
msoBarRow |
| Specifies whether a command bar is in the first row or last row relative to other command bars. |
| msoBarRowFirst | First row of docking area. |
| msoBarRowLast | Last row of docking area. |
| msoBarRowFirst |
| First row of docking area. |
| msoBarRowLast |
| Last row of docking area. |
msoBarType |
| Specifies the type of the command bar. |
| msoBarTypeMenuBar | Menu bar (1) |
| msoBarTypeNormal | Default command bar (0) |
| msoBarTypePopup | Shortcut menu (2) |
| msoBarTypeMenuBar |
| Menu bar (1) |
| msoBarTypeNormal |
| Default command bar (0) |
| msoBarTypePopup |
| Shortcut menu (2) |
msoButtonState |
| Specifies the appearance of a command bar button control. |
| msoButtonDown | Button is pressed down (-1) |
| msoButtonMixed | Button is not up or down (2) |
| msoButtonUp | Button is pressed up (0) |
| msoButtonDown |
| Button is pressed down (-1) |
| msoButtonMixed |
| Button is not up or down (2) |
| msoButtonUp |
| Button is pressed up (0) |
msoButtonStyle |
| Specifies the style of a command bar button. |
| msoButtonAutomatic | Default behavior. |
| msoButtonCaption | Text only. |
| msoButtonIcon | Image only. |
| msoButtonIconAndCaption | Image and text, with text to the right of image. |
| msoButtonIconAndCaptionBelow | Image with text below. |
| msoButtonIconAndWrapCaption | Image with text wrapped and to the right of the image. |
| msoButtonIconAndWrapCaptionB | Image with text wrapped below image. |
| msoButtonWrapCaption | Text only, centered and wrapped. |
| msoButtonAutomatic |
| Default behavior. |
| msoButtonCaption |
| Text only. |
| msoButtonIcon |
| Image only. |
| msoButtonIconAndCaption |
| Image and text, with text to the right of image. |
| msoButtonIconAndCaptionBelow |
| Image with text below. |
| msoButtonIconAndWrapCaption |
| Image with text wrapped and to the right of the image. |
| msoButtonIconAndWrapCaptionB |
| Image with text wrapped below image. |
| msoButtonWrapCaption |
| Text only, centered and wrapped. |
msoComboStyle |
| Specifies whether the command bar combo box includes a label or not. |
| msoComboLabel | Combo box includes a label, specified by the Caption property of the combo box. |
| msoComboNormal | Combo box does not include a label. |
| msoComboLabel |
| Combo box includes a label, specified by the Caption property of the combo box. |
| msoComboNormal |
| Combo box does not include a label. |
| REMARKS |
| * Specifies whether the command bar combo box includes a label or not. |
msoCommandBarButtonHyperlinkType |
| Specifies whether the command bar button is a hyperlink. |
| msoCommandBarButtonHyperlinkInsert | Clicking the command bar button inserts a picture at the active selection point. |
| msoCommandBarButtonHyperlinkNone | The command bar button is not a hyperlink. |
| msoCommandBarButtonHyperlinkOpen | Clicking the command bar button opens the link specified in the command bar button's TooltipText property. |
| msoCommandBarButtonHyperlinkInsert |
| Clicking the command bar button inserts a picture at the active selection point. |
| msoCommandBarButtonHyperlinkNone |
| The command bar button is not a hyperlink. |
| msoCommandBarButtonHyperlinkOpen |
| Clicking the command bar button opens the link specified in the command bar button's TooltipText property. |
| REMARKS |
| * Specifies whether the command bar button is a hyperlink. If the command bar button is a hyperlink, further specifies whether the hyperlink should launch another application such as the browser or insert a picture at the active selection point. |
msoControlType |
| Specifies the type of the command bar control. |
| msoControlButton | Command button. |
| msoControlEdit | Text box. |
| msoControlDropdown | Drop-down list. |
| msoControlComboBox | Combo box. |
| msoControlPopup | Pop-up. |
| msoControlActiveX | ActiveX control. |
| msoControlAutoCompleteCombo | Autocomplete Combo box |
| msoControlButtonDropdown | Drop-down button |
| msoControlButtonPopup | Pop-up button |
| msoControlCustom | Custom control |
| msoControlExpandingGrid | Expanding grid |
| msoControlGauge | Gauge control |
| msoControlGenericDropdown | Generic drop-down list |
| msoControlGraphicCombo | Graphic combo box |
| msoControlGraphicDropdown | Graphic drop-down list |
| msoControlGraphicPopup | Graphic pop-up menu |
| msoControlGrid | Grid |
| msoControlLabel | Label |
| msoControlLabelEx | Extended label |
| msoControlOCXDropdown | OCX drop-down list |
| msoControlPane | Pane |
| msoControlSpinner | Spinner |
| msoControlSplitButtonMRUPopup | Most Recently Used (MRU) pop-up |
| msoControlSplitButtonPopup | Split button pop-up |
| msoControlSplitDropdown | Split drop-down list |
| msoControlSplitExpandingGrid | Split expanding grid |
| msoControlWorkPane | Work pane |
| msoControlButton |
| Command button. |
| msoControlEdit |
| Text box. |
| msoControlDropdown |
| Drop-down list. |
| msoControlComboBox |
| Combo box. |
| msoControlPopup |
| Pop-up. |
| msoControlActiveX |
| ActiveX control. |
| msoControlAutoCompleteCombo |
| Autocomplete Combo box |
| msoControlButtonDropdown |
| Drop-down button |
| msoControlButtonPopup |
| Pop-up button |
| msoControlCustom |
| Custom control |
| msoControlExpandingGrid |
| Expanding grid |
| msoControlGauge |
| Gauge control |
| msoControlGenericDropdown |
| Generic drop-down list |
| msoControlGraphicCombo |
| Graphic combo box |
| msoControlGraphicDropdown |
| Graphic drop-down list |
| msoControlGraphicPopup |
| Graphic pop-up menu |
| msoControlGrid |
| Grid |
| msoControlLabel |
| Label |
| msoControlLabelEx |
| Extended label |
| msoControlOCXDropdown |
| OCX drop-down list |
| msoControlPane |
| Pane |
| msoControlSpinner |
| Spinner |
| msoControlSplitButtonMRUPopup |
| Most Recently Used (MRU) pop-up |
| msoControlSplitButtonPopup |
| Split button pop-up |
| msoControlSplitDropdown |
| Split drop-down list |
| msoControlSplitExpandingGrid |
| Split expanding grid |
| msoControlWorkPane |
| Work pane |
| REMARKS |
| * Only the top five can be used. The rest were never implemented and cannot be created through the object model. |
© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited Top