+ Reply to Thread
Results 1 to 4 of 4

Copy file from Excel

  1. #1
    Registered User
    Join Date
    11-14-2005
    Posts
    37

    Copy file from Excel

    Hi!

    Is there a funcion in VBA that allows me to copy a file from one location to another ??

    Like: copy C:\file D:\Temp\file

    Thanks in advance,
    Chris

  2. #2
    Jim Thomlinson
    Guest

    RE: Copy file from Excel

    FileCopy "Source", "Destination"
    --
    HTH...

    Jim Thomlinson


    "loopoo" wrote:

    >
    > Hi!
    >
    > Is there a funcion in VBA that allows me to copy a file from one
    > location to another ??
    >
    > Like: copy C:\file D:\Temp\file
    >
    > Thanks in advance,
    > Chris
    >
    >
    > --
    > loopoo
    > ------------------------------------------------------------------------
    > loopoo's Profile: http://www.excelforum.com/member.php...o&userid=28792
    > View this thread: http://www.excelforum.com/showthread...hreadid=492221
    >
    >


  3. #3
    Philip
    Guest

    RE: Copy file from Excel

    Hi,

    Yes, you can use the native VBA function "FileCopy" like this

    vba.FileCopy "C:\file", "D:\Temp\file"

    (or you can use the FileSystemObject)

    HTH

    Philip

    "loopoo" wrote:

    >
    > Hi!
    >
    > Is there a funcion in VBA that allows me to copy a file from one
    > location to another ??
    >
    > Like: copy C:\file D:\Temp\file
    >
    > Thanks in advance,
    > Chris
    >
    >
    > --
    > loopoo
    > ------------------------------------------------------------------------
    > loopoo's Profile: http://www.excelforum.com/member.php...o&userid=28792
    > View this thread: http://www.excelforum.com/showthread...hreadid=492221
    >
    >


  4. #4
    Registered User
    Join Date
    11-14-2005
    Posts
    37
    Thank you for your help,
    Chris

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1