📜  vba 复制文件 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:57.137000             🧑  作者: Mango

代码示例1
' Reference needed: "Microsoft Scripting Runtime"
Dim fso As Object
Set fso = VBA.CreateObject("Scripting.FileSystemObject")
fso.CopyFile(source, destination[, overwrite] )
' Or: overrides a non opened file:
FileCopy source, destination