Code:Sub ShowFileList(folderspec) Dim fs, f, f1, fc, s Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFolder(folderspec) Set fc = f.Files For Each f1 In fc s = s & f1.Name s = s & vbCrLf Next MsgBox s End Sub
|
Results 1 to 4 of 4
Thread: How to get a list of filesThreaded View
|
Click Here to Expand Forum to Full Width |