Here is an alternative:


VB Code:
  1. Set fs = CreateObject("Scripting.Filesystemobject")
  2. Set f = fs.GetFolder("c:\")
  3. counter = 1
  4. For Each i In f.Files
  5.     Cells(counter, 1) = i
  6.     counter = counter + 1
  7. Next

Obviously you don't need the counter and can replace the Cells line with whatever you wish to do with the file. Set the path in the second line, or use a dialogbox to let the user select it.

zaza