Dim fso As FileSystemObject, myfile As File
myCombo = myForm.Combobox1
Set fso = New FileSystemObject
myCombo.clear
For Each myfile In fso.GetFolder("c:\".Files
If right(myfile.Name,3) = "xls" then
myCombo.additem(myFile.name)
Next
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.