Solved

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

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
wordsWithout 49 79
userCompare  challenge 3 61
mergeTwo  challenge 13 72
oracle query help 18 78
RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
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 …
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…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

758 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

22 Experts available now in Live!

Get 1:1 Help Now