Scroll bar starting at bottom of form

  • Thread starter Thread starter Adamaths
  • Start date Start date
A

Adamaths

Hi,

I'm building a user form via VB script, and the final section of the
script sets the scrollheight of the form depending on how many
textboxes etc. have been added by the code.

However, whenever the form is shown the scroll bar starts at the very
bottom. I have tried the line

UserForm.ScrollTop = 0

However this only seems to nudge it up about 6 points (on average the
scrollheight of the form is about 2000 points).

Any help on what I need to do to start the viewable form at the top
would be greatly appreciated.

Thanks in advance,

Adam
 

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