+ Reply to Thread
Results 1 to 3 of 3

Copy and pasting multiple files in vba

  1. #1
    Registered User
    Join Date
    08-10-2012
    Location
    peterborough, england
    MS-Off Ver
    Excel 2003
    Posts
    2

    Copy and pasting multiple files in vba

    I am currently trying to produce a code that searches a master folder for drawings and then if it finds some matching certain critirea then copy and paste then into a part number folder. I think I've managed to get them all into a array. I just can't find out anywhere if I can use the filecopy function with this and also with the last line it doesn't like that the strFileName is a variable. Newish to vba so need help understanding please.

    Please Login or Register  to view this content.


    Please Login or Register  to view this content.
    Last edited by arlu1201; 08-21-2012 at 07:13 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy and pasting multiple files in vba

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    08-10-2012
    Location
    peterborough, england
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Copy and pasting multiple files in vba

    now tinkered with code and now copies one file but not all ones with the correct first 11 characters, code is now:

    Please Login or Register  to view this content.
    and uses the function

    Please Login or Register  to view this content.
    sorry but this is probably very basic language and everything but self taught using my previous (very limited) knowledge of C

+ 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