Copying file

  • Thread starter Thread starter John
  • Start date Start date
Hi

How can I copy a file to a path via vba?

Thanks

Regards


Hi.

You can use the "FileCopy" statement

Syntax: FileCopy strSource, strDestination

strSource = string with full path and file name
strDestination = string of destination folder

Make sure you check the file you are copying is closed, if you try to
use the FileCopy statement on a currently open file, an error occurs.


HTH
AndyC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top