Macro copy data from multi sheets to other sheet

ste33uka

Active Member
Joined
Jan 31, 2020
Messages
471
Office Version
  1. 365
Platform
  1. Windows
Hi would any on have a macro code that would copy data from sheets 6,7,8,9,10 cells A70 to F130 to the next available row on a sheet called 'DATA'
My sheet names are just 6,7,8,9,10
Thanks
 
The other workbook doesn't need to be macro enabled.
Does it make any difference if you do
VBA Code:
With ThisWorkbook.Sheets(CStr(i))
 
Upvote 0

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
The other workbook doesn't need to be macro enabled.
Does it make any difference if you do
VBA Code:
With ThisWorkbook.Sheets(CStr(i))
what i mean is i would like other workbook to be macro enabled, but it wont copy to that workbook if its macro enabled.
 
Upvote 0
It will copy to the other workbook regardless of whether it's macro enabled or not, just make sure you use the correct filename including extension.
 
Upvote 0
It will copy to the other workbook regardless of whether it's macro enabled or not, just make sure you use the correct filename including extension.

Would you have a similar macro that would copy cells A70:F130
from workbook1 sheets1,2,3,4,5,6,7,8,9,10
to workbook2 sheets 1,2,3,4,5,6,7,8,9,10.
So 1 goes to 1 , 2 goes to 2 etc.
 
Upvote 0
That is a different question & therefore needs a new thread. Thanks.
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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