Quickly Compiling Data from Multiple Workbooks

aagold

New Member
Joined
Jan 6, 2010
Messages
16
Hello,

I have 15 + worksheets in different workbooks maintained by seperate owners that I need to be able to quickly compile onto a single sheet. All of the column headers are identical, and each sheet has the same number of rows (~400).

I have simply been copying and pasting the updated data onto a compiled sheet, but I know there must be a better way. This forum has been extremely helpful in the past...Does anyone have any ideas?

Thank you!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Thanks. I beleive this post may have what I need, but I am not especially fluent with VB. How would I modify this so that, for example, if I had multiple sheets with the same columns and number of rows within the same workbook (thinking this probably makes things easier), Sheet1 would copy/paste values to rows 1-400, Sheet 2 would do the same to 401-800, and so on?

Thanks again.


This line of code does the actual copy.
Code:
    Range("A2:O64").Copy _ 
    Destination:=basebook.Sheets("Summary").Range("A" & basebook.Sheets("Summary").Range("A65536").End(xlUp).Row + 1)
You could edit it and repeat it for each range of the worksheet you want to copy.
The way you list your data the ranges don't match. You want C3 to be copied to C3:G3. Does that mean you want the data in C3 repeated 5 times in those 5 cells?

If your data will always be in the same exact cells you could hard code the ranges into the code.
Code:
    Range("C3").Copy _ 
    Destination:=basebook.Sheets("Summary").Range("C" & basebook.Sheets("Summary").Range("C65536").End(xlUp).Row + 1)
    Range("E25").Copy _ 
    Destination:=basebook.Sheets("Summary").Range("C" & basebook.Sheets("Summary").Range("C65536").End(xlUp).Row + 1)
    Range("M19").Copy _ 
    Destination:=basebook.Sheets("Summary").Range("C" & basebook.Sheets("Summary").Range("C65536").End(xlUp).Row + 1)
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,147
Members
452,891
Latest member
JUSTOUTOFMYREACH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top