Copy file from Excel

  • Thread starter Thread starter loopoo
  • Start date Start date
L

loopoo

Hi!

Is there a funcion in VBA that allows me to copy a file from on
location to another ??

Like: copy C:\file D:\Temp\file

Thanks in advance,
Chri
 
Hi,

Yes, you can use the native VBA function "FileCopy" like this

vba.FileCopy "C:\file", "D:\Temp\file"

(or you can use the FileSystemObject)

HTH

Philip
 

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