It's easy to use the scrollbar control to get two or more userform Listboxes to scroll down simultaneously
as below:
How would I do this with 2 textboxes,, Textbox1 and Textbox2, side by side on a userform?
Individual vertical scrollbars allow this with each Textbox independently. But how
would you do it with ONE vertical scrollbar for both textboxes and having them
move down simultaneously ? Image below
Thanks for anyone's help.
cr
as below:
Code:
Private Sub ScrollBar1_Change()
If ScrollBar1.Value <= ListBox1.ListCount - 1 Then
ListBox1.ListIndex = ScrollBar1.Value
ListBox2.ListIndex = ScrollBar1.Value
End If
End Sub
Individual vertical scrollbars allow this with each Textbox independently. But how
would you do it with ONE vertical scrollbar for both textboxes and having them
move down simultaneously ? Image below
Thanks for anyone's help.
cr