Hi
More variations on a theme. This'll also do the trick...
Sub cfc()
Dim fso, fold, f1, phyl, i
Set fso = CreateObject("Scripting.FileSystemObject"
Set fold = fso.GetFolder("C:\"'or whatever folder/path
Set phyl = fold.Files
i = 0
For Each f1 In phyl
i = i + 1
ActiveSheet.Cells(i, 1).Value = f1.Name
Next
End Sub
;-) If a man says something and there are no women there to hear him, is he still wrong?
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.