You are on page 1of 1

CODING PADA USERFORM

Private Sub cmbMyList_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single,
ByVal Y As Single)

HookListBoxScroll Me, Me.cmbMyList

End Sub

Private Sub lbxMyList_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single,
ByVal Y As Single)

HookListBoxScroll Me, Me.lbxMyList

End Sub

Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)

UnhookListBoxScroll

End Sub

Code by Peter Thornton, :

https://social.msdn.microsoft.com/Forums/en-US/7d584120-a929-4e7c-9ec2-9998ac639bea/mouse-
scroll-in-userform-listbox-in-excel-2010?forum=isvvba

You might also like