Copy information from range of cells in a series of named sheet to another workbook with the same named sheets

phappy

New Member
Joined
Feb 24, 2014
Messages
2
Hi All,

So a bit of vba help please and thanks! I'm looking for a macro that will copy and paste the values in a range of cell from the sheets of one workbook to the sheets of another master workbook. I want a macro that will let me select which second workbook to copy from, and then copy the information from the sheets in the second workbook that are named the same as the sheets in the master workbook.

For example:
workbooks: MasterWorkbook (MWB), DataWorkbook1 (DWB1), DataWorkbook2 (DWB2)

The Master Workbook has sheets named A,B,C,D,E,F,G,H DataWorkbook1 has sheets named A,C,D,F, DataWorkbook2 has sheets named B,E,G,H.

All sheets are formatted the same, the same range of cells needs to be copied for every sheet (should be able to loop this).

I want the macro in the Master Workbook to ask me to select a workbook (ie. DWB1 or DWB2) and then copy the information from a specific range of cells the sheets in the data workbook to the sheets with the same name in the master (ie. A to A, then C to C, then D to D, then F to F for DWB1).

I'm not entirely sure where to start as the data going from and to the specific named sheet is important and I'm not sure how to do that.

Any help would be appreciated!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,223,244
Messages
6,170,976
Members
452,372
Latest member
Natalie18

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