A text box has properties SelStart and SelLength.
SelStart is the zero-based position of the beginning of the selected text, and SelStart is the length of the selected text. If no text is selected, SelLength = 0.
You can only read and set these properties when the text box has the focus. So you should assign SelStart to a variable before the user clicks in the list box, for example in the On Exit or On Lost Focus event of the text box:
Public lngStart As Long
Private Sub Text0_LostFocus()
lngStart = Me.Text0.SelStart
End Sub
Then later on, you can set the SelStart property:
Me.Text0.SelStart = lngStart
Regards, Hans Vogelaar (http://www.eileenslounge.com)