+ Reply to Thread
Results 1 to 5 of 5

Copy same range in many excel files and paste into a main file

  1. #1
    Registered User
    Join Date
    06-19-2013
    Location
    brazil
    MS-Off Ver
    Excel 2007
    Posts
    64

    Copy same range in many excel files and paste into a main file

    Please, I need a little help.
    I want to copy a range from many excel files and paste into another one.

    All the files (with the ranges to be copied) are closed inside a folder, with sequential names .
    The file that will receive the ranges ("Boxx") is in another folder.

    I want to copy the range "B1:S5" and paste in "B1"(in "Boxx").
    Then, the next ranges should be pasted sequentially in B6, B11, B16, etc.

    The closest VBA code I've found and modified is here:

    Please Login or Register  to view this content.
    What's the missed line??
    Last edited by dualaudio454252; 11-15-2014 at 05:28 PM.

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Copy same range in many excel files and paste into a main file

    I modified some code I already had for something similar.

    Please Login or Register  to view this content.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    06-19-2013
    Location
    brazil
    MS-Off Ver
    Excel 2007
    Posts
    64

    Re: Copy same range in many excel files and paste into a main file

    All right, I should have searched inside this forum, but untill now Google kept saying me that there was nothing that could help me anywhere in the web.

    I've read the links bellow:
    http://www.excelforum.com/excel-prog...ster-file.html
    http://www.mrexcel.com/forum/excel-q...ed-folder.html

    That gave the code I've modified now, but I just want to copy and paste like values, so I've glued this:
    .PasteSpecial xlPasteValues
    But it's not working.
    Must say that I'm learning VBA from scratch.
    One last help, please:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-19-2013
    Location
    brazil
    MS-Off Ver
    Excel 2007
    Posts
    64

    Re: Copy same range in many excel files and paste into a main file

    mikeTRON, sorry, I was writing the upper message while you were writing, too.
    Like I said, that code is almost complete.
    I just need to know where to put that ".PasteSpecial xlPasteValues" or so.
    I've tried to use your code, but the other has some advantages.
    Thank you very, very much for your effort, but can you help with that?

  5. #5
    Registered User
    Join Date
    06-19-2013
    Location
    brazil
    MS-Off Ver
    Excel 2007
    Posts
    64

    Re: Copy same range in many excel files and paste into a main file

    This way it's working for me:

    Please Login or Register  to view this content.
    Thank you so, so much mikeTRON, you were the only who tried to help me!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Copy/paste Range of worksheets of several files in a folder to a master file
    By mrjinx007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-18-2013, 01:02 PM
  2. Replies: 0
    Last Post: 04-13-2013, 10:45 AM
  3. Replies: 1
    Last Post: 03-28-2013, 02:49 PM
  4. Merging multiple Excel files into tabs of one excel file without having to copy and paste?
    By BrettRCourtney in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-13-2013, 03:43 PM
  5. Copy-Paste Macro of 3 columns from multiple excel files into one summary file
    By jpmaster53 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-15-2012, 07:10 AM

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