+ Reply to Thread
Results 1 to 2 of 2

Copy files from listbox and paste in user defind location

  1. #1
    Registered User
    Join Date
    11-14-2012
    Location
    Lebanon, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    47

    Copy files from listbox and paste in user defind location

    I have had some help with other parts of this but I am stuck again. I am trying to copy files/folders from a user defind location and then paste them in another user defind location.
    I can get my listbox 1 & 2 to populate like I wanted, but when I submit the selection I get "Run-timer error '76': Path not found" (see FILE PATH NOT FOUND.PNG)

    When I check the line that is failing with; ?FSource & "\" & Me.ListBox2_Destination_Files.List(1), I get the true location of the file to be copied so I dont know what is wrong.

    I have attached my spreadsheet for reference.

    thank for the help.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by klonbeck; 12-14-2012 at 12:36 PM.

  2. #2
    Registered User
    Join Date
    11-14-2012
    Location
    Lebanon, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Copy files from listbox and paste in user defind location

    I just noticed that my destination path was missing a "\" at the end of the string. Example: if your path looks like this "C:\Users\Public\Documents" then Excel thinks Documents is a file, but if you add "\" to the end of the string "C:\Users\Public\Documents\" Excel now knows that Documents is a folder.

    I was also using copyfolder when what I really wanted was copyfile.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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