yinkajewole
Active Member
- Joined
- Nov 23, 2018
- Messages
- 281
I would like to have a code that will search the items in my listbox. The search should not be case sensitive. This is my code
Code:
[COLOR=#333333]Private Sub UserForm_Initialize()[/COLOR]Dim MyFolder As String
Dim MyFile As String
Dim j As Integer
MyFolder = "C:\Test"
MyFile = Dir(MyFolder & "\*.xls")
Do While MyFile <> ""
ListBox1.AddItem MyFile
MyFile = Dir
Loop [COLOR=#333333]End Sub[/COLOR]