UserForms, Scroll bars and initial positioning of contents

C

Chris Watts

I have created a UserForm in Excel 2007 to enable larger volumes of text to
be displayed than is allowed by MsgBox. When the area defined by the
UserForm is full then scroll bars appear. So far so good.

But the box initially displays with the vertical scroll bar set at a
position that show the bottom part of the text. What paramater should I set
to make the initial display showi the Top of the text?

TIA
Chris
 
C

Chris Watts

Chris Watts said:
I have created a UserForm in Excel 2007 to enable larger volumes of text to
be displayed than is allowed by MsgBox. When the area defined by the
UserForm is full then scroll bars appear. So far so good.

But the box initially displays with the vertical scroll bar set at a
position that show the bottom part of the text. What paramater should I
set to make the initial display showi the Top of the text?

TIA
Chris

Found an/the answer. I added the line:

BigBox.TextArea.SelStart = 1

cheers
Chris
 

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