Private Sub ListBox2_Click() Dim strFile As String Dim i As Integer Me.ListBox1.Clear For i = 0 To Me.ListBox2.ListCount - 1 If Me.ListBox2.Selected(i) Then strFile = Dir("C:\Users\hawari\Documents\TLC\" & Me.ListBox2.Text & "\*.xls") Do While Len(strFile) > 0 ListBox1.AddItem strFile strFile = Dir Loop End If Next End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)