#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 921
Default Copy a file remotely

Hi,

I want to copy a file from one folder to another in VBA. Normally I would
open the file and then use savesas, but the file is a csv and you cannot open
in excel.

So is there a way to just copy the file?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Copy a file remotely

Look at FileCopy in VBA's help.

And if you wanted to move the file, look at Name in VBA's help.


Jeff wrote:

Hi,

I want to copy a file from one folder to another in VBA. Normally I would
open the file and then use savesas, but the file is a csv and you cannot open
in excel.

So is there a way to just copy the file?

Thanks


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening Excel file when connected to the system remotely TP Excel Discussion (Misc queries) 0 June 14th 07 09:52 PM
Protect a range of cells remotely from another file Vish Excel Discussion (Misc queries) 2 November 15th 06 11:28 PM
Protect a range of cells remotely from another file Vish Excel Discussion (Misc queries) 0 November 14th 06 09:38 PM
Excel slow but NOT when connected remotely!! T-Bone Excel Discussion (Misc queries) 1 September 21st 06 02:55 PM
Editing Spreadsheets Remotely Hatte Excel Discussion (Misc queries) 2 August 15th 06 02:00 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"