Macro to open File and copy data from all sheets

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,581
Office Version
  1. 2021
Platform
  1. Windows
I would be appreciated if someone can please help me with code to do the following

I need to open up a workbook and copy the data on all sheets (A1:BA up to the last row containing data in col B) to sheet1 on the destination workbook. The data on each sheet must be copied directly below the last data from the previous sheet copied

For eg if sheet1 is A1:BA100 and Sheet2 is A1:BA50, then A1:BA100 from the source sheet1 must be pasted on sheet1 A1 , A1:BA50 on sheet2 must be copied into A101 on the destination sheet1 etc


I would greatly appreciate your assistance
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,219,162
Messages
6,146,659
Members
450,706
Latest member
LGVBPP

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