+ Reply to Thread
Results 1 to 2 of 2

How to set up a userform with verticle scroll bars.

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    How to set up a userform with verticle scroll bars.

    I need to design a user form that will have three columns of text boxes, where the column length will only be known at run time. It could be that there will be 20 or 30 columns, but it could be as few as 1.
    The data to populate the form will be a 3Col by x Row array. The purpose of using a userform is to allow the user to select one row, so as well as the columns of textboxes there would, perhaps be an OptionButton. I can see that scroll bars will be useful but I don,t know how to use them. Can anybody help please.
    John

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: How to set up a userform with verticle scroll bars.

    Hi,

    In the UserForm Properties:
    a. Change the ScrollBars Property to 2 - fmScrollBarsVertical.
    b. Change the ScrollHeight Property to a number larger than the UserForm Height.
    c. Optionally changes the ScrollTop Property.

    These items can be changed using VBA if you need to change values at runtime to remove the ScrollBars or to make the scroll height larger or smaller.

    Lewis

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Userform Scroll bars
    By zplugger in forum Excel General
    Replies: 4
    Last Post: 01-09-2015, 08:44 AM
  2. Scroll bars in an Excel userform
    By Shamus McShamus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-12-2009, 05:35 AM
  3. Replies: 1
    Last Post: 10-28-2009, 05:02 AM
  4. Scroll Bars in VBA userform
    By richardeallen in forum Excel General
    Replies: 1
    Last Post: 07-06-2007, 02:18 PM
  5. scroll back to verticle?
    By sclem9801 in forum Excel General
    Replies: 2
    Last Post: 11-17-2005, 01:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1