movign cursor at the end of the word

R

rocco

Hello,
I have a function that will check which digit or letter is entered in a
textbox.
This function will eventually delete the wrong last character and get back
to the textbox to finish entering the data.
Once the textbox get the focus from the function, I would like to have the
cursor at the end of the text entered, and not all the text selected.
Is it possible?
Thans!
Rocco
 
M

Marshall Barton

rocco said:
I have a function that will check which digit or letter is entered in a
textbox.
This function will eventually delete the wrong last character and get back
to the textbox to finish entering the data.
Once the textbox get the focus from the function, I would like to have the
cursor at the end of the text entered, and not all the text selected.
Is it possible?


Check VBA Help for the SelStart and SelLength proprerties.
 
Top