Just use the Dir function:
[tt]
Dim strText As String
strText = Dir("c:\mydir\*.txt")
If Len(strText) > 0 Then
Combo1.AddItem strText
Do
strText = Dir
Debug.Print strText
Combo1.AddItem strText
Loop While Len(strText) > 0
End If
[/tt]
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'If we're supposed to work in Hex, why have we only got A fingers?'
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.