+ Reply to Thread
Results 1 to 3 of 3

Run Time Error 5 - Invalid procedure call or agrument with copy folder

  1. #1
    Forum Contributor
    Join Date
    01-16-2009
    Location
    Ill.
    MS-Off Ver
    Excel 2010
    Posts
    190

    Run Time Error 5 - Invalid procedure call or agrument with copy folder

    Hello - - I'm trying to run this bit of code that would copy all the files from one folder to a subfolder of the same directory. Am I missing something in syntax? Cuz I don't see it...any assistance would be great! The error is on the FSO.copyfolder line....Thanks...

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Run Time Error 5 - Invalid procedure call or agrument with copy folder

    Out of interest does it work if you change the destination to somewhere completely different?

    As far as I know copyfolder is recursive, so trying to copy a folder into one of its own sub-directories is either going to fail, take an infinitely long time or use all of your disk space.

  3. #3
    Forum Contributor
    Join Date
    01-16-2009
    Location
    Ill.
    MS-Off Ver
    Excel 2010
    Posts
    190

    Re: Run Time Error 5 - Invalid procedure call or agrument with copy folder

    Yes, I'm able to use this same code when selecting a different folder, it works just fine. Is there any way around this when attempting to copy to a subfolder?

+ 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