initiallizing a textbox

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

Guest

Can a setting be made such that the beginning of text in a textbox appears,
rather than the end, when the UserForm it is on is opened? version = Word
2003 sp2.

I have a multi-line textbox on a UserForm. I've set the text to wrap.
There is more text than what can be seen when the form is open. When the
form is opened the end of the paragraph appears, by default, rather than the
beginning of it. This is rather confusing for the users (11 others besides
myself).

Any ideas would be welcome. Sometimes a complete solution grows out of a
seed of an idea.

ed.miller@[deletethis]IGT.com
 
At the end of the code that initializes the textbox's contents, add
the statement

TextBox1.SelStart = 0

(of course, use the real name of the textbox).

If you want to select some portion of the contents, you can also set
the .SelLength property. It defaults to 0.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
Thanks! Now I feel silly. I tried this earlier and it didn't work. In the
UserForm_Initialize I must have had a typo before!

Jay Freedman said:
At the end of the code that initializes the textbox's contents, add
the statement

TextBox1.SelStart = 0

(of course, use the real name of the textbox).

If you want to select some portion of the contents, you can also set
the .SelLength property. It defaults to 0.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

Can a setting be made such that the beginning of text in a textbox appears,
rather than the end, when the UserForm it is on is opened? version = Word
2003 sp2.

I have a multi-line textbox on a UserForm. I've set the text to wrap.
There is more text than what can be seen when the form is open. When the
form is opened the end of the paragraph appears, by default, rather than the
beginning of it. This is rather confusing for the users (11 others besides
myself).

Any ideas would be welcome. Sometimes a complete solution grows out of a
seed of an idea.

ed.miller@[deletethis]IGT.com
 

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