Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I prevent Excel from rendering the spreadsheet as my macro calculates it?

Tags:

excel

My macro updates a large spreadsheet with numbers, but it runs very slowly as excel is rendering the result as it computes it. How do I stop excel from rendering the output until the macro is complete?

like image 395
Oskar Avatar asked Sep 27 '08 18:09

Oskar


1 Answers

I use both of the proposed solutions:

Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
...
...
...
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
like image 177
SeeR Avatar answered Sep 30 '22 14:09

SeeR