Turn On AutoCalculations but do not calculate now

zico8

Board Regular
Joined
Jul 13, 2015
Messages
227
Hi,

Is it possible to enable AutoCalculations (after I disabled its) by prevent immediate calculations until normally it would be executed (after some changes in worksheet is done?)
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Why not wait until you've made your changes to turn it back on?
 
Upvote 0
I have quite big table with many formulas in it.
Calculating takes lot of time so I do not want to wait if table is filtered only
 
Upvote 0
Okay.

Why not wait until you've made your changes to turn it back on?
 
Upvote 0
Could you explain what exactly do you mean?

I am preparing table for other users, generally they will be only looking at filtered data.
But sometimes after filtering it they are able to change some values. Then auto calculating should be turned on (instead of turned on immediately after filterring)
 
Upvote 0
You are setting calculation to Manual, correct?

Then at some point, you are setting it back to Automatic, correct?

Does that do what you want? And if not, what do you want it to do instead?
 
Upvote 0
I am preparing table for other users, generally they will be only looking at filtered data.
But sometimes after filtering it they are able to change some values. Then auto calculating should be turned on (instead of turned on immediately after filterring)
Put this code into ThisWorkbook module and try
Rich (BB code):
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
  If Application.Calculation <> xlCalculationAutomatic Then
    Application.Calculation = xlCalculationAutomatic
  End If
End Sub
 
Upvote 0
Hi,
If I understand you right you want to have calcation turned on and make only calculation automatically if any value in any cell is changed, is that right? If so, check this code in workbook module.
Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
  If Application.Calculation <> xlCalculationAutomatic Then
    Application.Calculate
  End If
End Sub
 
Upvote 0
If so, check this code in workbook module.
Isn't that about the same as setting calculation to automatic?
 
Upvote 0
Application.calculate is not the same as.automatic calculation. It behaves as if you pressed F9 button which stands for one time calculation. When you put this code in the workbook as mentioned above algorism will run calculation if any change in any cell is made and when the automatic calculation is switched off. Soyou have switched off auto calculation and will have it calculated on any cell value change. Check this out.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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