Dim objFs As Object
Set objFs = CreateObject("Scripting.FileSystemObject")
For xt = 1 To 20
If Range("a" & xt).Value <> "" Then
For xuo = 1 To 20
If Dir("d:\比對\A資料夾\" & Left(Range("a" & xt).Value, 9)) & "-051115619000-OEM-T 190.xls" <> "" Then
objFs.copyfile "d:\比對\A資料夾\" & Left(Range("a" & xt).Value, 9) & "*.xlsx", "D:\比對\B資料夾\"
End If
Next xuo
End If
Next xt
'Set objFs = Nothing
End Sub