+ Reply to Thread
Results 1 to 4 of 4

copy selected range from multiple workbooks into multiple worksheets in one workbook

  1. #1
    Registered User
    Join Date
    01-24-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    20

    copy selected range from multiple workbooks into multiple worksheets in one workbook

    Hi everyone
    Im new and Im looking for a help.
    This is my problem:
    I've got 3 files: a.xlsx, b.xlsx, c.xlsx. Inside each file I've got 12 different worksheets. For each file they got same name, for example:
    file a.xlsx got: sheet1,sheet2,sheet3....sheet12.
    file b.xlsx got: sheet1,sheet2,sheet3....sheet12.
    file c.xlsx got: sheet1,sheet2,sheet3....sheet12.
    I need to run macro inside file summary.xlsx which will load specified data(C3,D111) from each sheet and paste it into same name sheet in summary.xlsx file. So lets say sheet5 has a table and I need to copy 2 columns from it, from all sheet5 from all 3 files, and paste it next to each other into sheet5 in file summary. And I need to do the same with each sheet.
    It does not have to be automated. I was also thinking maybe putting 3 buttons in file summary which will let choose user the files path.
    Just looking for something that can help me avoid all that manual copy/paste job which is time taking.
    So far I found a code which let me make a button, press it, select file, copy two columns from that file and paste it in active worksheet. So to do my job i would have to make it 12 times x 3.
    Anybody can help me?

  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 selected range from multiple workbooks into multiple worksheets in one workb

    Welcome to the Forum.

    It will be good if you upload a sample file(s) and what output you are trying to achieve so we can understand your problem better. Also specify the exact ranges you would like copied.
    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
    01-24-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: copy selected range from multiple workbooks into multiple worksheets in one workb

    Here I attached example of file AAA.xlsx , the files BBB.xlsx and CCC.xlsx will look the same just data in table will differ.
    I also attached an example of summary.xlsx file. I hope this will give You better picture what I have to do with my woorkbooks.
    Thanks for Your time.
    Attached Files Attached Files

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

    Re: copy selected range from multiple workbooks into multiple worksheets in one workb

    I am not able to understand what you have typed in cell H22 - AAAaaa = AAA from file name AAA.xlsx & aaa from sheet name "bbb"
    CCCaaa = CCC from file name CCC.xlsx & aaa from sheet name "aaa".

    Please explain.

+ 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