Combine 30+ single sheet workbooks

nightracer

Board Regular
Joined
May 17, 2004
Messages
147
Office Version
  1. 365
Hi

As per the title, I have multiple single sheet workbooks, and need to compile the data from each into one single sheet, taking the data in columns A-V.
All of the workbooks have the same column headers in row 1 and are in a single folder.

The number of rows can vary from 150 to 500+, so overall I am looking at 12,000+ rows.

Ideally it would happen in order, so pick all the data from Book1, then Book2 below that, then Book3 and so on.

The number of workbooks generated that need compiling can vary from 25 to 360.

Is this possible via either a macro or an add-in menu solution?

Any pointers appreciated.
 
Thanks, with that change it still cycles through the workbooks, but then just highlights rows 2 & 3 only in the combined book without bringing anything in.
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
And is there data in column A in the source workbooks?

If there is put a breakpoint on the line below then activate the source workbook (if not activated already), where are the marching ants from the copy?

Code:
ThisWorkbook.Worksheets(1).Activate
 
Last edited:
Upvote 0
Apologies, I have no idea what that means.

All of the source workbooks have data in column A and that column has the same number of rows completed as all other columns.
In the first source book there are 255 rows, in the next 131, the 229 and 176.
 
Upvote 0
To set a breakpoint...
Click in the left margin next to the code line, you should have a circle appear in the margin and the line should be highlighted (reddish-brown in my case) then run the code.

The code line will turn yellow and the code will stop.

Look at the source sheet and check what area is selected for copying (the moving dotted lines).
 
Upvote 0
When I click in the left margin it highlights in brown/red and doesn't highlight anything in the source sheet.

It's all way beyond my know-how, apologies.

I thank you for all your help, not to worry, I'll look for a another way to do it.

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,215,398
Messages
6,124,690
Members
449,179
Latest member
kfhw720

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