LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
DS DS is offline
external usenet poster
 
Posts: 117
Default Moving a file using excel vba

Peter81 - thanks very much for this post. For some time, when users are
submitting information on a form, I've been using the "SaveAs" command to
save a copy of the completed pro forma in a separate folder. This, of course,
leaves the user in the "Saved As" copy following this, rather than in the
template, which means they have to close the open document, and reopen the
template in order to submit another. Using this FileCopy method will make
their lives (and therefore mine!) much, much easier.

Many Thanks for that!
DS

"Peter81" wrote:


I dont think there is an explict Move statement in vb so I think you
would need to use something like:

FileCopy(Source As String, Destination As String)
then
Kill(Source As String)

e.g
FileCopy "d:\games\darts.xls", "c:\games\darts.xls"

Kill "d:\games\darts.xls"

Pete


--
Peter81
------------------------------------------------------------------------
Peter81's Profile: http://www.excelforum.com/member.php...o&userid=25353
View this thread: http://www.excelforum.com/showthread...hreadid=532626


 
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
Moving a sheet from one Excel file to another? Kathy Excel Discussion (Misc queries) 6 April 28th 09 03:32 PM
Moving data from one excel file to another audif New Users to Excel 4 June 5th 07 06:37 PM
How can I get a moving Clip art o move in my Excel file??? Jessica C. Jara Excel Discussion (Misc queries) 1 July 7th 06 06:15 PM
moving file from excel to word Clovis Excel Discussion (Misc queries) 2 April 8th 06 04:28 PM
Moving from one Excel File to Another Kevin Excel Programming 3 October 15th 04 03:29 AM


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

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

About Us

"It's about Microsoft Excel"