Manual Recalculate

Peter100

Well-known Member
Joined
Apr 21, 2002
Messages
765
I have a multi sheet workbook, with one worksheet containing a large multi sumif statement which takes a long time (relatively speaking) to calculate.

I want to disable the the auto re-calculate in this sheet ONLY.

I then want to recalculate it when a macro is run.

Any Ideas ?
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
On 2002-08-31 23:30, Peter100 wrote:
I have a multi sheet workbook, with one worksheet containing a large multi sumif statement which takes a long time (relatively speaking) to calculate.

I want to disable the the auto re-calculate in this sheet ONLY.

I then want to recalculate it when a macro is run.

Any Ideas ?

Application.Calculation = xlCalculationManual

'// Do your thing
'// Calculate just your sheet
Worksheets(1).Calculate
 
Upvote 0
Hello Peter100.

I use in my tables these VBAs:

Sub Calc_Off()
With Application
.Calculation = xlManual
.MaxChange = 0.001
End With
ActiveWorkbook.PrecisionAsDisplayed = False
End Sub

Sub Calc_On()
With Application
.Calculation = xlAutomatic
.MaxChange = 0.001
End With
ActiveWorkbook.PrecisionAsDisplayed = True
End Sub

When starting macro put Calc_off macro and at end put Calc_on macro.

BRGDS Sir Vili.
 
Upvote 0
Hi Ivan

Won't that turn off auto calculation in all sheets and then only calculate the specified worksheet ?

Or am I reading it incorrectly


Sir Vili

I will try this out
 
Upvote 0
On 2002-09-01 00:41, Peter100 wrote:
Hi Ivan

Won't that turn off auto calculation in all sheets and then only calculate the specified worksheet ?

Or am I reading it incorrectly


Sir Vili

I will try this out

Peter, yes you are correct, should read the Q
:)
 
Upvote 0

Forum statistics

Threads
1,222,045
Messages
6,163,583
Members
451,846
Latest member
ajk99

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