Command Bar Enumerations

msoBarPositionSpecifies the position or behavior of a command bar.
msoBarProtectionSpecifies how a command bar is protected from user customization.
msoBarRowSpecifies whether a command bar is in the first row or last row relative to other command bars.
msoBarTypeSpecifies the type of the command bar.
msoButtonStateSpecifies the appearance of a command bar button control.
msoButtonStyleSpecifies the style of a command bar button.
msoComboStyleSpecifies whether the command bar combo box includes a label or not.
msoCommandBarButtonHyperlinkTypeSpecifies whether the command bar button is a hyperlink.
msoControlTypeSpecifies 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.

msoBarBottomCommand bar is docked at the bottom of the application window.
msoBarFloatingCommand bar floats on top of the application window.
msoBarLeftCommand bar is docked on the left side of the application window.
msoBarMenuBarCommand bar will be a menu bar (Macintosh only).
msoBarPopupCommand bar will be a shortcut menu.
msoBarRightCommand bar is docked on the right side of the application window.
msoBarTopCommand 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.

msoBarNoChangeDockDocking setting cannot be changed (16)
msoBarNoChangeVisibleCommand bar cannot be hidden (8)
msoBarNoCustomizeCommand bar cannot be customized (1)
msoBarNoHorizontalDockCommand bar cannot be docked to the top or bottom (64)
msoBarNoMoveCommand bar cannot be moved (4)
msoBarNoProtectionAll aspects of command bar can be customized by user (0)
msoBarNoResizeCommand bar cannot be resized (2)
msoBarNoVerticalDockCommand 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.

msoBarRowFirstFirst row of docking area.
msoBarRowLastLast row of docking area.

msoBarRowFirst
First row of docking area.
msoBarRowLast
Last row of docking area.

msoBarType

Specifies the type of the command bar.

msoBarTypeMenuBarMenu bar (1)
msoBarTypeNormalDefault command bar (0)
msoBarTypePopupShortcut 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.

msoButtonDownButton is pressed down (-1)
msoButtonMixedButton is not up or down (2)
msoButtonUpButton 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.

msoButtonAutomaticDefault behavior.
msoButtonCaptionText only.
msoButtonIconImage only.
msoButtonIconAndCaptionImage and text, with text to the right of image.
msoButtonIconAndCaptionBelowImage with text below.
msoButtonIconAndWrapCaptionImage with text wrapped and to the right of the image.
msoButtonIconAndWrapCaptionBImage with text wrapped below image.
msoButtonWrapCaptionText 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.

msoComboLabelCombo box includes a label, specified by the Caption property of the combo box.
msoComboNormalCombo 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.

msoCommandBarButtonHyperlinkInsertClicking the command bar button inserts a picture at the active selection point.
msoCommandBarButtonHyperlinkNoneThe command bar button is not a hyperlink.
msoCommandBarButtonHyperlinkOpenClicking 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.

msoControlButtonCommand button.
msoControlEditText box.
msoControlDropdownDrop-down list.
msoControlComboBoxCombo box.
msoControlPopupPop-up.
msoControlActiveXActiveX control.
msoControlAutoCompleteComboAutocomplete Combo box
msoControlButtonDropdownDrop-down button
msoControlButtonPopupPop-up button
msoControlCustomCustom control
msoControlExpandingGridExpanding grid
msoControlGaugeGauge control
msoControlGenericDropdownGeneric drop-down list
msoControlGraphicComboGraphic combo box
msoControlGraphicDropdownGraphic drop-down list
msoControlGraphicPopupGraphic pop-up menu
msoControlGridGrid
msoControlLabelLabel
msoControlLabelExExtended label
msoControlOCXDropdownOCX drop-down list
msoControlPanePane
msoControlSpinnerSpinner
msoControlSplitButtonMRUPopupMost Recently Used (MRU) pop-up
msoControlSplitButtonPopupSplit button pop-up
msoControlSplitDropdownSplit drop-down list
msoControlSplitExpandingGridSplit expanding grid
msoControlWorkPaneWork 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