ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Speed up macro (https://www.excelbanter.com/excel-programming/435630-speed-up-macro.html)

TGalin

Speed up macro
 
I have 3 worksheets. Each worksheet has 44,000 cells with formulas in them.
Altogether that comes out to 132,000 cells with formulas.

I added a long macro to the workbook which works mostly with another
worksheet. When I run the macro it takes a ridiculously long time to
complete the steps. The reason it takes so long is because of the 132,000
cells with formulas. When I remove those 3 worksheets, its works fine.

Is there a way I can speed up the macro without getting rid of the 3
worksheets I mentioned or purchasing extra memory for my computer?


Don Guillett

Speed up macro
 
It may help if we could SEE your code.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"TGalin" wrote in message
...
I have 3 worksheets. Each worksheet has 44,000 cells with formulas in
them.
Altogether that comes out to 132,000 cells with formulas.

I added a long macro to the workbook which works mostly with another
worksheet. When I run the macro it takes a ridiculously long time to
complete the steps. The reason it takes so long is because of the 132,000
cells with formulas. When I remove those 3 worksheets, its works fine.

Is there a way I can speed up the macro without getting rid of the 3
worksheets I mentioned or purchasing extra memory for my computer?



Mike H

Speed up macro
 
Hi,

Try

Application.Calculation = xlManual
Application.ScreenUpdating = False
'your code
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True

Mike


"TGalin" wrote:

I have 3 worksheets. Each worksheet has 44,000 cells with formulas in them.
Altogether that comes out to 132,000 cells with formulas.

I added a long macro to the workbook which works mostly with another
worksheet. When I run the macro it takes a ridiculously long time to
complete the steps. The reason it takes so long is because of the 132,000
cells with formulas. When I remove those 3 worksheets, its works fine.

Is there a way I can speed up the macro without getting rid of the 3
worksheets I mentioned or purchasing extra memory for my computer?


TGalin

Speed up macro
 
This is better than perfect. Thank you very much. Precisely what I was
aiming to do. Thank you!

"Mike H" wrote:

Hi,

Try

Application.Calculation = xlManual
Application.ScreenUpdating = False
'your code
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True

Mike


"TGalin" wrote:

I have 3 worksheets. Each worksheet has 44,000 cells with formulas in them.
Altogether that comes out to 132,000 cells with formulas.

I added a long macro to the workbook which works mostly with another
worksheet. When I run the macro it takes a ridiculously long time to
complete the steps. The reason it takes so long is because of the 132,000
cells with formulas. When I remove those 3 worksheets, its works fine.

Is there a way I can speed up the macro without getting rid of the 3
worksheets I mentioned or purchasing extra memory for my computer?



All times are GMT +1. The time now is 01:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com