movign cursor at the end of the word

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top