Solved

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

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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.
A short article about problems I had with the new location API and permissions in Marshmallow
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

739 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