How to combine several workbooks in a folder into an existing Workbook.

Grasshopper77

New Member
Joined
Apr 30, 2018
Messages
1
I'm new to macro's and appreciate any help I can get! I know this seems to be the same question posted everywhere, except everywhere I go, the code doesn't seem to work for me, which is why I have created my own post. Now the task. I have a folder with approx. 12 workbooks. Each workbook has one sheet. The titles and number change every week. What I'd like to do is create a macro that copies the header (A1:U1) and data off the first workbook/worksheet and place it into my existing worksheet. Then copy just the data from the other workbooks/worksheets. The data rows are variable, with a slight issue on blank rows. The next to last row has totals (F:I). I don't want to copy that data over. Also, my worksheets, skips a row and has data in only A:B (more roll-up data). Again, I don't want to copy this data over either. Thanks in advance for any help!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,224,518
Messages
6,179,254
Members
452,900
Latest member
LisaGo

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