Highlighting text in text box

C

Craig Wilks

Using SetFocus to have the cursor located in a text box each time, what
is the code to have the default text highlighted ready for a new entry
without first having to block or delete the existing textbox contents?

Craig Wilks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
J

Jan Karel Pieterse

Hi,

Set the enterfield behaviuor:

..EnterFieldBehavior = fmEnterFieldBehaviorSelectAll

Then use SetFocus to set the focus to it.

Regards,

Jan Karel Pieterse
Excel TA/MVP
 

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

Top