Solved

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

Posted on 2003-11-20
6
339 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now