+ Reply to Thread
Results 1 to 2 of 2

Copying and pasting multiple different workbooks into single workbook using loop?

  1. #1
    Registered User
    Join Date
    05-04-2012
    Location
    USA
    MS-Off Ver
    excel 2010
    Posts
    25

    Copying and pasting multiple different workbooks into single workbook using loop?

    Hello,

    I'm a fairly low-level noob, but with the help of this forum have been able to do (seemingly) alot. Here is what I'm currently trying to do: I am trying to copy the second sheet of six different workbooks into a single workbook and pasting them into sheets 1-6 in my new workbook. I've used a similar process before, but the code seems exceptionally long to me. I believe there must be a way to loop or something else I'm not aware of to avoid writing the code six times (i.e. for each copy and paste). Here is what I have so far:

    Please Login or Register  to view this content.
    ..... [I do think from "Otherbooks" 3,4,5,and 6. Any suggestions on how to make this less redundant would be appreciated.
    Last edited by JBeaucaire; 07-20-2012 at 06:13 PM. Reason: Added code tags, as per forum rules. Don't forget!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copying and pasting multiple different workbooks into single workbook using loop?

    Like so:
    Please Login or Register  to view this content.


    Please don't forget to use code tags, I've added it to yuor post above. Take a moment to read through the forum rules (see link above).
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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