ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copying files (https://www.excelbanter.com/excel-programming/305941-copying-files.html)

Robin Clay[_3_]

Copying files
 
Greetings !

I have the name and directory of a source file, and the
name of the target directory.

I was going to use

Shell "Copy " & Source & " " & Target

what VBA code could I use instead?


RClay AT haswell DOT com

Ron de Bruin

Copying files
 
Hi Robin

Look at the FileCopy command in the VBA help

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Robin Clay" wrote in message ...
Greetings !

I have the name and directory of a source file, and the
name of the target directory.

I was going to use

Shell "Copy " & Source & " " & Target

what VBA code could I use instead?


RClay AT haswell DOT com




Robin Clay[_3_]

Copying files
 

Again, SO simple - WHEN you know how ! Thanks once more.

-----Original Message-----
Hi Robin

Look at the FileCopy command in the VBA help

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Robin Clay" wrote

in message ...
Greetings !

I have the name and directory of a source file, and the
name of the target directory.

I was going to use

Shell "Copy " & Source & " " & Target

what VBA code could I use instead?


RClay AT haswell DOT com



.



All times are GMT +1. The time now is 03:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com