Copyfile

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to be able to copy a directory and all the directory contents
(including sub directories) using VBA. When I tried it with object.copyfile,
it only copies the file and not the sub directories...is there another
command that will copy all of the contents, including the sub directories?
 
Your use of the term CopyFile implies that you're using FSO
(FileScriptingObject), as VBA's copy method is named FileCopy.

There is a CopyFolder method available in FSO in addition to the CopyFile
method.
 

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