【发布时间】:2014-09-25 08:15:53
【问题描述】:
谁能告诉我一种使用 vba 将文件从一个文件夹复制到另一个文件夹的方法,但条件是文件是否已经存在不要覆盖?
这是我的代码:
If Target.Column = Range("BL1").Column And Target.Row > 14 Then
FileCopy "\\UKSH000-FILE06\purchasing\New_Supplier_Set_Ups_&_Audits\assets\audit.xls", "\\UKSH000-FILE06\purchasing\New_Supplier_Set_Ups_&_Audits\ATTACHMENTS\" & Range("B" & ActiveCell.Row) & "\audit.xls"
End If
【问题讨论】: