Adding a srcollbar to a userform

I've setup a userform and filled it with textboxes and labels at runtime.

The number of controls that fill the userform change depending on user input.

The number of controls can get pretty long so instead of changing the height of the userform I leave the userform height constant and from the userform properties I select
KeepScrollsBarsVisible = 2 - fmScrollBarsVertical and ScrollBars = 2 - fmScrollBarsVertical.

I have also tried playing with the ScrollHeight and ScrollWidth properties.

When the userform is run the place for the scrollbar and the arrows at either end are visible but the scrollbar itself is not.

How do I get the useform to show the scrollbar so the user can scroll down the userform?
SassManAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SassManAuthor Commented:
What do you mean Moved?
0
SassManAuthor Commented:
Thanks
0
BrianGEFF719Commented:
Hello SassMan,

VB Forms do not support scroll bars. You can add a scroll bar and after some very complicated code get scrolling controls that scroll with the scroll bar. I dont recommend this, it will take a long time to code all this up.


What you should consider is a tab control. You can dynamically add/remove tabs for more "form space"


Brian
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

SassManAuthor Commented:
Thanks for that.

In excel vba, why do userforms have numerous scrollbar properties then?
0
BrianGEFF719Commented:
I dont do VBA I only do VB. I couldn't realy advise you on VBA, are you working on a VBA project?


Brian
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SassManAuthor Commented:
Yep
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.