Solved

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

Posted on 2003-11-20
6
344 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
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 …
Simple Linear Regression

622 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