vba calculations too slow

muizac

Board Regular
Joined
Oct 24, 2006
Messages
50
Hello,
You may have able to solve my hair loss problems!!!

This spreadsheet is only 2mb but now takes 3 - 10 minutes to add a row or save the document - especially the 'transactions worksheet' - which was ok when it was 200 rows, but now I've got 1000 its a different story.

The file is over 100k ozgrid size so I uploaded it here:
https://rcpt.yousendit.com/1100581765/cfffdd249700b9b86b162ecba53fb630

I'm pretty good with excel but a newbie to vba (this was cobbled together from things on the net). Does the VBA need optimizing, or does something else need to change to speed it up?

Thanks heaps
Andrew
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
have you applied formatting to the whole sheet, or filled down a heap of formulae somewhere?

do you turn off autocalculation when you are executing vba?
 
Upvote 0
Hi there,

I have a fair few sumproduct calculations going down about 5000 records.

I'm not sure how to "turn off autocalculation when executing vba" - but I have selected Manual in Formulas > Calculation options - is this the same thing?

It was working great - it's just since Ive put in these few hundred records it's stuffed up.

Thank you
A
 
Upvote 0
try adding this to your code

Code:
Sub test()

Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual

'your code here'


Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic

End Sub

Hi P: have a happy and restful easter
 
Upvote 0
Beauty - thanks mate, I'll give that a whirl tonight.
Not sure how restful easter will be with ANZAC and 2UP - but I'll try :)
Have a good long weekend mate
 
Upvote 0
Aargh !!!
5 days off ......I'm going insane !!
Just started "fixing" a Little "A"'s project.
I'm not the smartest, but some people simply shouldn't be allowed near a spreadsheet !!
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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