Redigera

Dela via


Style property

For ComboBox, specifies how the user can choose or set the control's value.

For MultiPage and TabStrip, identifies the style of the tabs on the control.

Syntax

For ComboBox: object.Style [= fmStyle ]

For MultiPage and TabStrip: object.Style [= fmTabStyle ]

The Style property syntax has these parts:

Part Description
object Required. A valid object.
fmStyle Optional. Specifies how a user sets the value of a ComboBox.
fmTabStyle Optional. Specifies the tab style in a MultiPage or TabStrip.

Settings

The settings for fmStyle are:

Constant Value Description
fmStyleDropDownCombo 0 The ComboBox behaves as a drop-down combo box. The user can type a value in the edit region or select a value from the drop-down list (default).
fmStyleDropDownList 2 The ComboBox behaves as a list box. The user must choose a value from the list.

The settings for fmTabStyle are:

Constant Value Description
fmTabStyleTabs 0 Displays tabs on the tab bar (default).
fmTabStyleButtons 1 Displays buttons on the tab bar.
fmTabStyleNone 2 Does not display the tab bar.

See also

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.