Sub TEST()
Dim xR As Range, FS, xFile$
Set FS = CreateObject("Scripting.FileSystemObject")
For Each xR In Range([A1], [A65536].End(xlUp))
If xR <> "" Then
xFile = "D:\123\" & xR & "*.pdf"
If Dir(xFile) <> "" Then FS.CopyFile xFile, "D:\456\"
End If
Next
End Sub作者: 882138 時間: 2016-1-19 13:12