Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do I make a scrollbar work to scroll a userform?

Posted on 2003-11-20
6
Medium Priority
?
346 Views
Last Modified: 2010-04-17
I have created a userform for a word documet that allows a user to fill in information (visual basic userform).  When the user clicks the OK button the information goes to the correct bookmarks in the word document.  I need to make the userform scroll for future forms that will need more information to be filled out than the display screen can show.  Please Help. : )
0
Comment
Question by:TheBeans
6 Comments
 

Expert Comment

by:kapil_mohta
ID: 9794389
use a frame (or a picture box) and a VScrollbar on it to make it scroll

Kapil
0
 
LVL 3

Expert Comment

by:saracoglu
ID: 9797596
the frames and pictureboxes do not have inherit scrolling functions, even with an additional VScroll bar.

You can, however code the placements of your controls in the Form_Resize event (setting the .top property for each control). If you use the value of the VScroll bar as an additional parameter to the .top property of the controls, and call the Form_Resize event each time the VScroll_Change event is called, the controls will be (re)placed according to the value of the VScroll bar. So your form will feel like scrolling.

hope this helps,

Alper
0
 

Author Comment

by:TheBeans
ID: 9799153
Thanks for all your help, I found the answer yesterday on a German programming site.  Under Properties for the UserForm I set Keep Scroll Bars Visible to 0,Scrollbars to 3, and the Scroll Height to 1000.  I then adjusted the Scroll Height (480) for the form and resized the form so that it will fit on a 800x600 display screen.  Thanks again for getting back so fast, this is truly an excellent resource!  : )
0
 

Accepted Solution

by:
RomMod earned 0 total points
ID: 11001900
Question finalized per recommendation.
50 points refunded.

RomMod
Community Support Moderator
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Six Sigma Control Plans
Screencast - Getting to Know the Pipeline

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question