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?)
 
Thanks for your replies.
I will set it into manual before filter is setting up, and then after workbook_sheetchange it will switch to automatic again.

But... changing filter is not execute workbook_sheetchange?
 
Upvote 0

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Check this out.

A workbook calculates when any change is made if calculation is set to Automatic. Your code calculates when any change is made and calculation is not set to Automatic.

Explain how that's different?
 
Last edited:
Upvote 0
So, to sum up...

I need some solution that will calculate my sheet when some value is changed and Not when table filter is changed.

Is this possible?
 
Upvote 0
You can put Calculation Options on the QAT for ready access to change.

Why does the table take so long to calculate? Do you have volatile formulas?
 
Upvote 0
Yes, I have there some columns with INDEX+MATCH reffering to the other table as well as some COUNTIF and SUMIF. Unfortunately I need them.

What do you meen by adding Calculation Options to the QAT? How it can help me?

Maybe the better solution will be filtering data by running macro that hides unneeded rows instead of Table filter? Would it be faster?
 
Last edited:
Upvote 0
Hi,
As I already mentioned the application.calculate is not the same as automatic calculation. Set the excel calculation to manual then set the following code in workbook module. The
Workbook_SheetChange
will run only if the change is made in cell and will run one time calculation. It will not run while using filter in excel.
Check this out, and let me know. :)

Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
    Application.Calculate
End Sub
 
Upvote 0
Have you tried
Code:
Application.Calculation = xlCalculationSemiautomatic
which sets calculation to automatic, except for data tables.
 
Upvote 0
Mikerickson - I need to calculate tables as well;

Mentor82 - it can be solution. I will check tomorrow at work
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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