setFocus on textbox in userform

L

Lina

Hi
I have a wordtemplate with a userform. The textboxes in the userform shows a
default text from the beginning for ex the title textbox shows TITLE. My
problem is that when the userform is shown I want the text in the textbox to
be marked, like when you tab between textboxes with text the text is marked
and when you write something you replace the text. I want this behavior also
for the textbox that is first selected. I have tried to do this with setFocus
but it only places the cursor after the text in the textbox.
Thankful for help.
 

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