'REQUIRES: Reference to Micrsoft Scripting Runtime
Dim oFs As New FileSystemObject
Dim oFolder As Folder
Dim oFile As File
Set oFolder = oFs.GetFolder(FullPath)
For Each oFile In oFolder.Files
msgbox oFile.Name
Next
End If
'REQUIRES: Reference to Micrsoft Scripting Runtime
Dim oFs As New FileSystemObject
Dim oFolder As Folder
Dim oFile As File
Set oFolder = oFs.GetFolder(FullPath)
For Each oFile In oFolder.Files
msgbox oFile.Name
Next
End If