Maybe You can add this code on Change event in your textbox
Code:
Dim ChrSet As String, chrpos As Integer, getchr As String
ChrSet = Text1.Text
If IsNumeric(ChrSet) = False Then
If Len(ChrSet) <> 0 Then
chrpos = InStr(1, ChrSet, Right(ChrSet, 1), vbTextCompare)
getchr = Right(ChrSet, 1)
Text1.SelStart = chrpos - 1
Text1.SelLength
Leave a comment: