property Expression.SelLength as Long
Returns or sets the number of characters selected.

TypeDescription
Long A long expression that indicates the number of characters selected.

Returns the number of characters the user selects in a text-entry area of a control, or specifies the number of characters to select. Not available at design time; read-write at run time.  Use the SelText property to get the current selection. The control fires the SelChange event when user changes the selection. Use the SelForeColor and SelBackColor properties to specify the colors for the selected text.