Listbox That Controls Second Listbox
Loading...
14,390
Loading...
Uploader Comments (wjj4832)
see all
All Comments (2)
-
Hello wjj4832 thankyou for you video,but in my case when properly part of the code you show here on youtube to my project the compiler error I mark the following line of code:
ufselections.ListBox2.Clear
Thanks for your help!.
-
hello sir, excellent method. but the quality of recording is blur, could you please post the codes for this video or send to my mail thanks a lot
Loading...
LoadSubcategories Code:
Public Sub LoadSubcategories(strSubName As String)
ufSelections.lbSubcategory.Clear
Range(strSubName).Offset(1, 0).Activate
While ActiveCell.Value > " " ufSelections.lbSubcategory.AddItem (ActiveCell.Value) ActiveCell.Offset(1, 0).Activate
Wend
Range(ufSelections.lbCategory.Text).Activate
End Sub
wjj4832 3 years ago
Click event for the first listbox:
Private Sub lbCategory_Click()
Call LoadSubcategories(lbCategory.Text)
Range(lbCategory.Text).Activate
End Sub
wjj4832 3 years ago