Sub listFiles()
Const MyFolder = "C:\test" 'starting path
Dim fileList As String
Dim fs As Object
Dim i As Long
Dim ws As Worksheet
Dim rng As Range
Dim LastRow As Long
Set ws = ActiveSheet
Set fs = CreateObject("Scripting.FileSystemObject")
ws.Cells.ClearContents
With Application.FileSearch
.NewSearch
.LookIn = MyFolder
.FileType = 1 'msoFileTypeAllFiles
.SearchSubFolders = 0 'no subfolders
.Execute
LastRow = .FoundFiles.Count
For i = 1 To LastRow
'include the following line if you want a list of the files in Column A
'ws.Range("A" & i).Value = .FoundFiles(i)
fileList = fileList & fs.getfilename(.FoundFiles(i)) & ","
Next i
End With
'Add the list of files as a validation list to C1
Range("C1").Validation.Add Type:=xlValidateList, Formula1:=fileList
End Sub