#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default Copy help

Hi all
Using the function shown below I c an obtain the newest file in that
directory
=newestfile("c:\&dip2005\2005backup\","*.xls")
How can I now copy this file from its current location to a different
folder.
Many thanks
Ian M
--
Norton Professional 2004 says this email is clean...believe it


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copy help

look at the Filecopy command. The example from help:



Dim SourceFile, DestinationFile

' Define source file name.
SourceFile = "SRCFILE.xls"

' Define target file name.
DestinationFile = "DESTFILE.xls"

' Copy source to target.
FileCopy SourceFile, DestinationFile

--
Regards,
Tom Ogilvy


com wrote in message ...
Hi all
Using the function shown below I c an obtain the newest file in that
directory
=newestfile("c:\&dip2005\2005backup\","*.xls")
How can I now copy this file from its current location to a different
folder.
Many thanks
Ian M
--
Norton Professional 2004 says this email is clean...believe it




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
Copy and paste versus copy and insert copied cells Alana New Users to Excel 1 September 28th 07 08:58 PM
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
EXCEL FILE a copy/a copy/a copy ....filename ve New Users to Excel 1 September 29th 05 09:12 PM
Code to copy range vs Copy Entire Worksheet - can't figure it out Mike Taylor Excel Programming 1 April 15th 04 08:34 PM
How copy format, font, color and border without copy/paste? Michel[_3_] Excel Programming 1 November 5th 03 04:43 PM


All times are GMT +1. The time now is 04:12 PM.

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"