AutoWordSelect property

Specifies whether a word or a character is the basic unit used to extend a selection.

Syntax

object.AutoWordSelect [= Boolean ]

The AutoWordSelect property syntax has these parts:

Part Description
object Required. A valid object.
Boolean Optional. Specifies the basic unit used to extend a selection.

Settings

The settings for Boolean are:

Value Description
True Uses a word as the basic unit (default).
False Uses a character as the basic unit.

Remarks

The AutoWordSelect property specifies how the selection extends or contracts in the edit region of a TextBox or ComboBox.

If the user places the insertion point in the middle of a word and then extends the selection while AutoWordSelect is True, the selection includes the entire word.

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.