Hi, i have a folder on my PC and i want to get all the text files from that folder and display them in a listbox.
I tried using FileSystemObject by doing something like this
but it didnt work.Code:Dim fso As New FileSystemObject Dim Files As String Files = fso.GetFile(App.Path & "\" & "*.txt*") MsgBox Files
And in the above code I just tried to get it to display in a msgbox.




Reply With Quote