+ Reply to Thread
Results 1 to 5 of 5

Error using VBA FileCopy Function

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Error using VBA FileCopy Function

    I am recieving an error in the following code

    Please Login or Register  to view this content.
    I would like to copy a specific file from one folder to another. fPath, fDate, and fPriorDate have all been declared globally. Any suggestions
    Last edited by AnthonyWB; 07-20-2010 at 02:47 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Error using VBA FileCopy Function

    Form the two strings into variables, print them to the debug window, and verify that they are correct.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Re: Error using VBA FileCopy Function

    I am assuming you mean intermediate window?

    Please Login or Register  to view this content.
    Invalid Character. So the mistake is in the second part.

  4. #4
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Re: Error using VBA FileCopy Function

    I think I got it.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Error using VBA FileCopy Function

    What I meant was
    Please Login or Register  to view this content.
    ... but all roads lead to Rome.

+ 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