+ Reply to Thread
Results 1 to 3 of 3

Combine 2 workbooks together with multiple worksheets

Hybrid View

  1. #1
    Registered User
    Join Date
    06-19-2008
    Posts
    5

    Combine 2 workbooks together with multiple worksheets

    Hi all,

    I have been searching for ever now and can't seem to find what I am looking for...(maybe I am wording it wrong)

    What I have to do is take Workbook 1 and copy all the data and paste it under all the data in Workbook 2... and do this for about 200 worksheets per workbook, all of them with the same titles.

    So for example....

    Take all of the rows with data in them starting with row 4, from Workbook 1, Worksheet 1 and paste them under all the rows with data in Workbook 2, Worksheet 1.

    Then.... go to Worksheet 2, then Worksheet 3 and so on...

    I program in Java, and know a little about VBA, but not nearly enough to get this hammered out... Any help would be greatly appreciated.

    Thanks
    Last edited by VBA Noob; 09-11-2008 at 03:05 PM.

  2. #2
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387
    It would help if you posted an example workbook.

    Also, how many workbooks are you copying?

    There would be two approaches I would choose from. Both would have a button on the 'main' workbook.

    In scenario 1, you'd have a field next to the button asking for a workbook name. When the button's pressed, it would then grab all of the information from that workbook and past it into the main workbook.

    In scenario 2, you would have all of the workbooks (except for the main) in one folder. When the button is pressed, it cycles through each workbook in that folder and pastes the data into the main workbook.

  3. #3
    Registered User
    Join Date
    06-19-2008
    Posts
    5

    Wink Does this help?

    I am not able to upload them because the smallest workbook I have is 2,033 KB, and that's without any data.

    I am only combining 2 workbooks, but will do it multiple times for different people. Each person has 2 workbooks and there are a total of 8 people, so I will do the merge 8 times.

    I'll try to explain it a little better for now, until I find a way to post the spreadsheets.

    *********************
    wbA = workbook A
    wbB = workbook B

    wsAll = worksheet All
    wsTest = worksheet Test
    *********************
    I need all of the data from wbA, wsAll, rows 4 to the end copied and pasted under all the data in wbB, wsAll.

    Then, all of the data from wbA, wsTest, rows 4 to the end copied and pasted under the data in wbB, wsTest.

    and so on....

    There are about 200 ws I have to do this to for each person.

    I was kinda hoping that I could manipulate a vba script to start from the first ws and go to the end and just copy and paste all the data starting with row 4 into a different workbook.

    I will post a link or something to the files as soon as I can....might not be able to until the morning though...

    Thank you for attempting to help

+ 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. Append multiple workbooks with multiple worksheets
    By samirz10 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-10-2008, 02:28 PM
  2. Automatically format multiple worksheets
    By Kez in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-29-2008, 08:25 AM
  3. Multiple charts over multiple sets of data over multiple worksheets.
    By matrocka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2007, 10:01 AM
  4. Run Macro on Multiple Workbooks (.csv) Files at Once
    By davehunter in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-26-2007, 10:52 AM
  5. Printing different worksheets from multiple workbooks
    By andycreighton in forum Excel General
    Replies: 8
    Last Post: 01-11-2007, 08:27 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