Düzenle

Aracılığıyla paylaş


MsoControlType enumeration (Office)

Specifies the type of the command bar control. Used with the Add method of the CommandBarControls object. Only a limited set of the control types can be created via the CommandBars object model: msoControlButton, msoControlEdit, msoControlDropdown, msoControlComboBox, msoControlPopup, and msoControlActiveX. Other control types may exist on built-in or add-in command bars, but cannot be created via the object model.

Name Value Description
msoControlActiveX 22 ActiveX control.
msoControlAutoCompleteCombo 26 Combo box in which the first matching choice is automatically filled in as the user types. Cannot be created through the object model.
msoControlButton 1 Command button.
msoControlButtonDropdown 5 Drop-down button. Cannot be created through the object model.
msoControlButtonPopup 12 Pop-up button. Cannot be created through the object model.
msoControlComboBox 4 Combo box.
msoControlCustom 0 Custom control. Cannot be created through the object model.
msoControlDropdown 3 Drop-down list.
msoControlEdit 2 Text box.
msoControlExpandingGrid 16 Expanding grid. Cannot be created through the object model.
msoControlGauge 19 Gauge control. Cannot be created through the object model.
msoControlGenericDropdown 8 Generic drop-down list. Cannot be created through the object model.
msoControlGraphicCombo 20 Graphic combo box. Cannot be created through the object model.
msoControlGraphicDropdown 9 Graphic drop-down list. Cannot be created through the object model.
msoControlGraphicPopup 11 Graphic pop-up menu. Cannot be created through the object model.
msoControlGrid 18 Grid. Cannot be created through the object model.
msoControlLabel 15 Label. Cannot be created through the object model.
msoControlLabelEx 24 Extended label. Cannot be created through the object model.
msoControlOCXDropdown 7 OCX drop-down list. Cannot be created through the object model.
msoControlPane 21 Pane. Cannot be created through the object model.
msoControlPopup 10 Pop-up.
msoControlSpinner 23 Spinner. Cannot be created through the object model.
msoControlSplitButtonMRUPopup 14 Most Recently Used (MRU) pop-up. Cannot be created through the object model.
msoControlSplitButtonPopup 13 Split button pop-up. Cannot be created through the object model.
msoControlSplitDropdown 6 Split drop-down list. Cannot be created through the object model.
msoControlSplitExpandingGrid 17 Split expanding grid. Cannot be created through the object model.
msoControlWorkPane 25 Work pane. Cannot be created through the object model.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.