VBA code to copy multiple excel files to existing (already named) sheets of a master workbook

Sunnykumar

New Member
Joined
Apr 21, 2014
Messages
5
Scenario - There are multiple excel files in a folder whose data needs to be copied to specific (Already named) sheets of a master workbook

For example - there are 7 files in a folder and their must be pasted in 7 different existing sheets of the master workbook.

let's say, 1 of the source file named as "Data1.xlsx", Now this has to be pasted in a existing tab of the master workbook's sheet named "SalesData";
2nd source file named as Data2.xlsx, Now this has to be pasted in a existing tab of the master workbook's sheet named "Quota";
----------------- and so on ----------------- for all seven files-------------------------there are 7 designated named sheets in master file-------------------

I hope I was able to explain my situation.

Please help, I had been trying to search in many forums

Thanks in advance to all.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules. Be sure to follow & read the link at the end of the rule too!

If you do cross-post in the future and also provide a link, then there shouldn’t be a problem.
 
Upvote 0
I was unaware of the regulation.

However, I have mentioned the same in my question itself -

"Please help, I had been trying to search in many forums"

And, More to add I have not answered anywhere -
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,702
Members
449,048
Latest member
81jamesacct

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