How to duplicate each row in every sheet number of times

glanko07

New Member
Joined
Apr 21, 2022
Messages
16
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
  2. Web
HI! I got a new problem. I have 10 sheets and 800 rows per sheet. I want to duplicate each row 1200 times in every sheet and I want do it on go. can anyone help me? P.S each row has a formula, format, and value.
 
That's what you said, you had 1 line to be duplicated 1.200 times and that makes to me a total of 1+1.200=1.201.

Yes, your intuition is right, that's how to totalize 1200.
Now, as per your issue, as before there shoudn't be any problem unless you are out of memory or overloading your cpu. Restart your PC, use a clean file and relaunch the macro and it should end as required (as said take's time 800x1199=959.200 rows x n.columns = is a lot of work to be done even if you have a new PC).
It would go faster if you add at the beginning of the macro:
VBA Code:
Application.ScreenUpdating = False
Application.Calculation = xlManual
and at the end:
Code:
Application.ScreenUpdating = True
Application.Calculation = xlAutomatic
Wow, thank you so much you're a lifesaver! it works so well! I'm sorry for bothering you, sir. I'll end this thread
 
Upvote 0

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Thanks for the positive feedback(y), glad having been of some help.
 
Upvote 0

Forum statistics

Threads
1,223,941
Messages
6,175,537
Members
452,652
Latest member
eduedu

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