Macro to consolidate 20 workbook sheets into one sheet.

Alka Bajaj

New Member
Joined
Apr 5, 2011
Messages
44
Hi Expert,

I have 20 excel files each having more that 1000 records, the format and header for all the files are same.

I need to consolidate all these 20 different files into one excel sheet, having only one header row at the top. Since I need to perform this step frequently, I am planning to automate it.

Hence please advice a macro for above.

Appreciate your guidance.

Thanks.
Regards,
Alka
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Currently they are named as following.
ACT report for PY area U0
ACT report for PY area A1
ACT report for PY area S0

It is not sequential. Basically it is named as per the country. However if it is required in macro we can follow some naming convention.

Thanks.

Regards,
Alka
 
Upvote 0
No you can loop through all the files in a folder too. Check on that. If they're all in a single folder then it might be possible to use ADO to directly extract the data without even opening them, depending on the layout of the information on the sheets.
 
Upvote 0
Which version of Excel are you using?
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,558
Members
452,928
Latest member
101blockchains

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