• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Adding Vertical and Horizontal Scrollbars in a userform using Userform_Activate method

Prima Satria

New Member
Dear Chandoo,

I have to add both vertical and horizontal scrollbars in a userform, so far I have this code below for horizontal scrollbars only. The question 1, how to make a vertical scrollbar in the same userform?
Code:
Private Sub UserForm_Activate()
    With Me
    .ScrollBars = fmScrollBarsHorizontal
    .ScrollWidth = .InsideWidth * 1.5
    End With
End Sub

The second question, how set the position of top scrollbar (vertical) and left scrollbar (horizontal) so it could like a freeze pane?

Thank you
 
Hi ,

It would make it easier for members to help you , if you could upload your workbook which has the userform and the scrollbar(s) and the code in it.

Narayan
 
Back
Top