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
 
Back
Top