Userform Listbox selection change

J

JimBob

I have a UserForm with two ListBoxes. The first ListBox contains a list of
Employee Names, the second ListBox contains a list of Clients. Each Client
is assigned to one Employee.

I want the user to be able to select one Employee from the Employee ListBox
and have that limit the list of Clients in the secons ListBox based on
Clients assigned to the selected Employee.

I can't figure out how to detect a change to the selection in the Employee
List box to trigger a refresh of the list of the Clients in the second list
Box.

Any ideas on how to detect a change in selection in a listbox on a UserForm?

Thanks.
 
J

JimBob

.... so simple.

THANKS.

Nigel said:
Private Sub ListBox1_Change()
If ListBox1.ListIndex >= 0 Then
' your code
End If
End Sub

--

Regards,
Nigel
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top