+ Reply to Thread
Results 1 to 3 of 3

FileCopy extremely slow

  1. #1
    Registered User
    Join Date
    11-04-2008
    Location
    WHY IS THIS REQUIRED
    Posts
    11

    FileCopy extremely slow

    I am trying to make a macro that copies a file per row to a folder specified by a cell in the row (and then calls a command line tool on it). I am using FileCopy to copy the file, but it is extremely slow even for only 6 rows (I need it to work with hundreds).

    I think the problem is that the folders are network folders. Is there maybe another copy file function in VBA that does not block while the operation completes? I could go through all my rows and just copy the files, then go through again and run the command line tool. By the time it reaches the end of the sheet, the first file would be done copying.
    Last edited by VBA Noob; 11-07-2008 at 02:30 AM.

  2. #2
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    codes

    Hi
    Can you post the codes you are using?
    Ravi

  3. #3
    Registered User
    Join Date
    11-04-2008
    Location
    WHY IS THIS REQUIRED
    Posts
    11
    I found a solution to this problem: Use VBA.Shell("xcopy ...") instead of FileCopy.

+ 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