This code will return the workbooks in a folder. Note that the workbooks will not be returned in any particular order. So if order is important you will have to get all the names and the sort the array.
Code
Sub ATest()
Dim strName As String
strName = GetNextWorkbookName(ThisWorkbook.Path & "*.xls")
Do
Debug.Print strName
strName = GetNextWorkbookName()
Loop While strName <> ""
ShowFileList ThisWorkbook.Path
End Sub
Function GetNextWorkbookName(Optional Name As String) As String
If Name <> "" Then
GetNextWorkbookName = Dir(Name)
Else
GetNextWorkbookName = Dir()
End If
End Function