ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   File Handling (https://www.excelbanter.com/excel-programming/323591-file-handling.html)

TAM

File Handling
 
Can you please tell me whether it is possible to copy files (regardless of
type) from one location to another using VBA - I know how to get the
contents of a folder but can not find anything regarding actions to take on
files

Thanks



KL

File Handling
 
OrigFile="C:\video.wmv"
DestFile="D:\TEMP\copy of video.wmv"
FileCopy OrigFile, DestFile

Regards,
KL

"TAM" wrote in message
. uk...
Can you please tell me whether it is possible to copy files (regardless of
type) from one location to another using VBA - I know how to get the
contents of a folder but can not find anything regarding actions to take
on
files

Thanks





TAM

File Handling
 
Many thanks for your help - works great

"TAM" wrote in message
. uk...
Can you please tell me whether it is possible to copy files (regardless of
type) from one location to another using VBA - I know how to get the
contents of a folder but can not find anything regarding actions to take

on
files

Thanks





Myrna Larson

File Handling
 
Yes, it does, and (SURPRISE!) you could have found that by going to VBA Help
and typing 'file copy' (without the quotes) in the search box <g.


On Sat, 19 Feb 2005 17:25:00 GMT, "TAM" wrote:

Many thanks for your help - works great

"TAM" wrote in message
.uk...
Can you please tell me whether it is possible to copy files (regardless of
type) from one location to another using VBA - I know how to get the
contents of a folder but can not find anything regarding actions to take

on
files

Thanks






All times are GMT +1. The time now is 07:29 AM.

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