PercyN
Programmer
- May 16, 2007
- 86
Hi,
I am trying to copy a file from one location to another. I found this code in VBA help but is returns an error that says object required.
Can anyone help?
I am trying to copy a file from one location to another. I found this code in VBA help but is returns an error that says object required.
Code:
Public Function CopyFile()
FileSystemObject.CopyFile Application.CurrentProject.Path & "\ldc.dll", "c:\Windows\System32\", True
End Function
Can anyone help?