Here you are....
Thanks.ref:
https://stackoverflow.com/questions...g-files-that-meet-specific-criteria-using-vba
Sub Tester()
Dim fls, f, crit
crit = "(UNITED STATES)" 'make appropriate changes on this line
Range("A1").Select
Set fls = GetFiles("D:\Amjad\VBA RND\", crit, "*.pdf") ' 'make appropriate changes on this line
For Each f In fls
ActiveCell = f
ActiveCell.EntireColumn.AutoFit
nf = Replace(f, crit, "")
If Trim(f) <> "" Then
FileCopy f, nf
ActiveCell.Offset(0, 1) = nf
ActiveCell.Offset(0, 1).EntireColumn.AutoFit
Kill f
ActiveCell.Offset(1, 0).Select
End If
Next f
End Sub
Function GetFiles(path As String, crit As Variant, Optional pattern As String = "") As Collection
Dim rv As New Collection, f
If Right(path, 1) <> "\" Then path = path & "\"
f = Dir(path & pattern)
Do While Len(f) > 0
If InStr(1, f, crit) Then
rv.Add path & f
Else
rv.Add " "
End If
f = Dir() 'no parameter
Loop
Set GetFiles = rv
End Function