vba copy file

The solution for “vba copy file” can be found here. The following code will assist you in solving the problem.

‘ 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

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts