ComboBox.EnterFieldBehavior Property (Outlook Forms Script)
Returns or sets an Integer that specifies the selection behavior when entering a ComboBox. Read/write.
Syntax
expression.EnterFieldBehavior
expression A variable that represents a ComboBox object.
Remarks
The possible values of EnterFieldBehavior are 0 and 1. 0 represents selecting the entire contents of the edit region when entering the control (default). 1 represents leaving the selection unchanged. Visually, this uses the selection that was in effect the last time the control was active.
The EnterFieldBehavior property controls the way text is selected when the user tabs to the control, not when the control receives focus as a result of the SetFocus method. Following SetFocus, the contents of the control are not selected and the insertion point appears after the last character in the control's edit region.
You can combine the effects of the EnterFieldBehavior property and DragBehavior to create a large number of combo box styles.
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.