VBA code to copy data from multiple workbooks and paste into master workbook

Sunns

New Member
Joined
Aug 20, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi everyone, I'm new to VBA and its so hard for me to write a code to copy data from different workbook and paste into master workbook.
Hope someone helps me with this,

I have few workbooks which contains the results of dyno testing of different engines and I want to do some comparison, hence I want a code which copy specific row from those workbooks and paste into master workbook.
Also in master, I've created different sheets by renaming it with specific model number so it will paste data into associated sheet.

So i want that, it goes through all workbooks and if the branch "East" in cell "AY9" then it will go in cell "AC7" and find that same value or nearby in column "E" and copy that whole row and paste into master workbook. In master workbook it will look for the sheet name for eg. "20V4000C22" which mentioned in "AY1" cell. After finding the sheet it will paste serial number first in column "A" and along with copied data.

However, for west.

It should look for value in cell "R10" instead of "AC7". and rest is same as above mentioned.

I know its bit tricky, but I hope someone would be able to help me with this.

Regards



maco-min.jpg
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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