Excel crashing due to loop

MarkCBB

Active Member
Joined
Apr 12, 2010
Messages
497
HI there,

I am running some code that very basically copies and moves a sheet from a workbook and saves it, every loop creates an invoice, currently it loops 170 times but excel cant seem to make it past 170 all the time. is there any reason why this happens?
 
o yaar, sorry blond moment. been awake for sometime now. will update you after I run the new code, thanks for the idea. :)
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
turns out the code that I wass using to paste values before the copy and move sheet, was the challanges, i changed the code to paste the values on the new sheet, then save it. works perfectly now. I dont understand why, but it works better.
 
Upvote 0

Forum statistics

Threads
1,224,525
Messages
6,179,317
Members
452,905
Latest member
deadwings

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