Copy help

  • Thread starter Thread starter PCOR
  • Start date Start date
P

PCOR

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
 
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 news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top