SelStart

This property returns and sets the starting point of selected text. In addition, you can use SelStart to set insertion points, establish an insertion range, select substrings in a control, or clear text.. For copy, cut, and paste operations, use SelStart in conjunction with the Clipboard object.

Syntax

object.SelStart [= index]

Parameters

object
Object expression that evaluates to a ComboBox or TextBox control.
index
Numeric expression that specifies the starting point of the selected text, as described in Settings.

Remarks

The SelStart property is unavailable at design time.

Setting SelStart greater than the text length sets the property to the existing text length. Changing SelStart changes the selection to an insertion point and sets SelLength to 0.