Hello,
Hope you are well.
I have a Userform with a 2100 height. On this Userform is Frame14 with a 2000 height and scrollbar set Vertically to a 1950 height. On Frame14 is 5 different Frames (Frame1, Frame2, ect).
What I want to do is if a user clicks the scrollbar the scrollbar should upon the click bring into view the next frame on Frame14.
For instance:
If this is possible, can someone please give me a clue or advice on how to write this code?
Regards
Hope you are well.
I have a Userform with a 2100 height. On this Userform is Frame14 with a 2000 height and scrollbar set Vertically to a 1950 height. On Frame14 is 5 different Frames (Frame1, Frame2, ect).
What I want to do is if a user clicks the scrollbar the scrollbar should upon the click bring into view the next frame on Frame14.
For instance:
Code:
Private sub Frame14_Scrollbar_Click()
Dim y as Integer
For y = 1 to 5
If Me.Controls(Frame & y).Value = True Then
With Frame14
.ScrollHeight = Me.Controls(Frame & y).Height
End with
Exit sub
Else
End if
Next y
End sub
If this is possible, can someone please give me a clue or advice on how to write this code?
Regards