+ Reply to Thread
Results 1 to 2 of 2

Scrolling of UserForm1

  1. #1
    frankosun
    Guest

    Scrolling of UserForm1

    Hi there,

    i have one problem, i cannot understand using of scrollbar in vb in excel.
    I have one userform which is bigger then my screen and i need to put in this
    form scrollbar and use it for moving my userform to see all things on it. Can
    anyone help me? Thanx a lot.

  2. #2
    Tom Ogilvy
    Guest

    Re: Scrolling of UserForm1

    Try putting code like this in your Initialize event.

    Private Sub UserForm_Initialize()
    Dim lh As Long
    Me.ScrollBars = fmScrollBarsVertical
    lh = Me.Height
    Me.ScrollHeight = lh
    Me.Height = Me.Height / 2
    End Sub


    Then play with it to get what you want.

    --
    Regards,
    Tom Ogilvy


    "frankosun" <frankosun@discussions.microsoft.com> wrote in message
    news:778C2A0E-F178-4B75-91C5-A675F0789F9F@microsoft.com...
    > Hi there,
    >
    > i have one problem, i cannot understand using of scrollbar in vb in excel.
    > I have one userform which is bigger then my screen and i need to put in

    this
    > form scrollbar and use it for moving my userform to see all things on it.

    Can
    > anyone help me? Thanx a lot.




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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