VBA to copy data from multiple workbooks' multiple worksheets into master workbook & same name worksheet.

dprtpf

New Member
Joined
Jan 6, 2023
Messages
2
Office Version
  1. 2019
Hello Everyone!

I have to copy data from 5+ source workbooks and paste those data into a master workbook.
All the workbooks are located in a folder on my desktop: C:\Users\ABCD\Documents\

All those source workbooks contain multiple worksheets and each worksheet name is matched with master workbook's each worksheet.
for example)
source workbook A has worksheets (names are apple, orange, banana etc..)
source workbook B has worksheets (names are apple, orange, banana etc..)
source workbook C has worksheets (names are apple, orange, banana etc..) and so on..

master/target workbook also has worksheets (names are apple, orange, banana etc..) and currently this master workbook has title row (field name) only.
I would like to copy each source workbook's data (without header/title row) to master workbook based on the worksheet name matching.

Expected result is.. One master workbook's 'apple' worksheet has all A, B, C workbooks' 'apple' worksheet data without header (header is already in master table so only need to copy data range).
really new to VBA and would really appreciate your help!

Please let me know if you require any clarification.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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