Sub MovePDFsToAnotherFolder()
Dim fso As Object, sourcePath As String, destPath As String
Dim Fldr As Object, f As Object, ct As Long
sourcePath = "C:\Users\Joe\Documents\Source Folder\" 'Change path and folder name to suit
destPath = "C:\Users\Joe\Documents\Destination Folder\" 'Change path and folder name to suit
Set fso = CreateObject("Scripting.FileSystemObject")
Set Fldr = fso.getfolder(sourcePath).Files
For Each f In Fldr
If f.Name Like "*.pdf*" Or f.Name Like "*PDF*" Then
ct = ct + 1
f.Move destPath
End If
Next f
If ct > 0 Then
MsgBox ct & " pdf files have been moved"
Else
MsgBox "No pdf files found in the source folder"
End If
End Sub