Start editing point in a TextBox

  • Thread starter Thread starter Flemming Dahl
  • Start date Start date
F

Flemming Dahl

Hi all,

I have a TextBox with 5 characters "WS-PE" in by default. When the user
tab's through the fields on the userform, at Enter this TextBox, I would
like the cursor to be placed in editing mode after character 3.

Can this be done and how in Excel XP ?

In another TextBox my wish is the same, but with the cursor placed at the
end of the default text......how?

Thnaks,
Flemming
 
Solved by setting the TextBox property EnterKeyBehavior to
fmEnterFieldBehaviorRecallSelection and SelStart = 3 (or another number)

Flemming
 

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