B
Boss
Hi,
I got a code where i can get the list of file which are prsent in C:\ drive...
I need to open them, any ideas...
Thanks!
Private Sub Command3_Click()
Dim dir, folder, files
dir = "C:\Test\"
Set fso = CreateObject("Scripting.FileSystemObject")
Set folder = fso.GetFolder(dir)
Set files = folder.files
MyListBox.RowSourceType = "Value List"
For Each file In files
MyListBox.AddItem (file.Name)
Next
End Sub
I got a code where i can get the list of file which are prsent in C:\ drive...
I need to open them, any ideas...
Thanks!
Private Sub Command3_Click()
Dim dir, folder, files
dir = "C:\Test\"
Set fso = CreateObject("Scripting.FileSystemObject")
Set folder = fso.GetFolder(dir)
Set files = folder.files
MyListBox.RowSourceType = "Value List"
For Each file In files
MyListBox.AddItem (file.Name)
Next
End Sub