ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Application.Calculation Problems (https://www.excelbanter.com/excel-worksheet-functions/175938-application-calculation-problems.html)

Jive

Application.Calculation Problems
 
I have a spreadsheet that is quite large and has a lot of page formatting as
users select values etc on the input sheet to generate a nice sales package
for the customer.

with careful use of;
Application.Calculation = xlManual
Application.Calculation = xlAutomatic
ActiveSheet.Calculate

I was able to reduce the total calculation and formatting time to
approximately 5 seconds.

However when another sheet is open at the same time which is also
calculation intensive, the total time total calculation and formatting time
is approximately 2 minutes.

I assume that is is because everytime the workbook switches the calculation
mode to automatic, excel recalculates every cell in every workbook? or
something to that effect.

Does anyone have another way? ive tried
ActiveWorkbook.Application.Calculation = xlManual
ActiveWorkbook.Application.Calculation = xlAutomatic
but it hasnt made any difference

Gary''s Student

Application.Calculation Problems
 
See:

http://groups.google.com/group/micro...500d7513837b6c
--
Gary''s Student - gsnu200767


"Jive" wrote:

I have a spreadsheet that is quite large and has a lot of page formatting as
users select values etc on the input sheet to generate a nice sales package
for the customer.

with careful use of;
Application.Calculation = xlManual
Application.Calculation = xlAutomatic
ActiveSheet.Calculate

I was able to reduce the total calculation and formatting time to
approximately 5 seconds.

However when another sheet is open at the same time which is also
calculation intensive, the total time total calculation and formatting time
is approximately 2 minutes.

I assume that is is because everytime the workbook switches the calculation
mode to automatic, excel recalculates every cell in every workbook? or
something to that effect.

Does anyone have another way? ive tried
ActiveWorkbook.Application.Calculation = xlManual
ActiveWorkbook.Application.Calculation = xlAutomatic
but it hasnt made any difference


Jive

Application.Calculation Problems
 
Problem solved - thanks

"Gary''s Student" wrote:

See:

http://groups.google.com/group/micro...500d7513837b6c
--
Gary''s Student - gsnu200767


"Jive" wrote:

I have a spreadsheet that is quite large and has a lot of page formatting as
users select values etc on the input sheet to generate a nice sales package
for the customer.

with careful use of;
Application.Calculation = xlManual
Application.Calculation = xlAutomatic
ActiveSheet.Calculate

I was able to reduce the total calculation and formatting time to
approximately 5 seconds.

However when another sheet is open at the same time which is also
calculation intensive, the total time total calculation and formatting time
is approximately 2 minutes.

I assume that is is because everytime the workbook switches the calculation
mode to automatic, excel recalculates every cell in every workbook? or
something to that effect.

Does anyone have another way? ive tried
ActiveWorkbook.Application.Calculation = xlManual
ActiveWorkbook.Application.Calculation = xlAutomatic
but it hasnt made any difference



All times are GMT +1. The time now is 11:58 PM.

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