combining 1000 separated ranges from multiple sheets into one

Alaa mg

Active Member
Joined
May 29, 2021
Messages
343
Office Version
  1. 2019
Hello

I have about 1000 separated range in each sheet , and each range could contain at least 15 rows so the final rows are about 15000 rows .

every sheet contains name so when put the ranges under each other should create name for each range based on sheet name

the result in COMBINED sheet and will add new sheet before COMBINED sheet every time so should delete data in COMBINED sheet when copy data every time

insert.xlsm
ABCDE
1DATEDescribeDEBITCREDITBALANCE
205/01/2022NOT PAID12331233
306/01/2022NOT PAID12332466
407/01/2022PAID2000466
508/01/2022PAID4660
ALA



insert.xlsm
ABCDE
1DATEDescribeDEBITCREDITBALANCE
208/01/20220
309/01/2022NOT PAID20002000
411/01/2022NOT PAID200010003000
511/01/2022NOT PAID200050000
MAL


insert.xlsm
ABCDE
1DATEDescribeDEBITCREDITBALANCE
211/01/20220
312/01/2022NOT PAID15001500
413/01/2022NOT PAID5002000
514/01/2022PAID200010003000
615/01/2022PAID10101990
716/01/2022PAID1000990
817/01/2022PAID9900
MOUNIRR


I expect like this
insert.xlsm
ABCDE
1NAME
2ALA
3DATEDescribeDEBITCREDITBALANCE
405/01/2022NOT PAID12331233
506/01/2022NOT PAID12332466
607/01/2022PAID2000466
708/01/2022PAID4660
8
9
10NAME
11MAL
12DATEDescribeDEBITCREDITBALANCE
1308/01/20220
1409/01/2022NOT PAID20002000
1511/01/2022NOT PAID200010003000
1611/01/2022NOT PAID200050000
17
18
19NAME
20MOUNIRR
21DATEDescribeDEBITCREDITBALANCE
2211/01/20220
2312/01/2022NOT PAID15001500
2413/01/2022NOT PAID5002000
2514/01/2022PAID200010003000
2615/01/2022PAID10101990
2716/01/2022PAID1000990
2817/01/2022PAID9900
COMBINED

thanks.
 
I will see if I can attach file with big data despite of contain sensitive data , but I think copying random data or maybe repeat the same data to make big .
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
ok
your code is perfect (y)
I tested with about 2000 rows for each sheet . I used about for 4 sheets the code is still fast and gives 0.360sec.
I satisfy your answering .
thank you so much .:)
 
Upvote 0
Great- You're welcome, I was happy to help. Thanks for the feedback!
 
Upvote 0

Forum statistics

Threads
1,215,136
Messages
6,123,251
Members
449,093
Latest member
Vincent Khandagale

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