Sub getFolderContent(path As String)
Dim objFolder, objFso, obj
Dim names
Set objFso = CreateObject("scripting.filesystemobject")
Set objFolder = objFso.getFolder(path)
For Each objFile In objFolder.Files
names = names & objFile.Name & vbCrLf
Next
MsgBox names
End Sub