Hello excel experts,
I am intentionally setting Calculations to Manual when specific worksheet in my workbook are activated (using Worksheet_Activate event and Application.Calculation = xlCalculationManual code). As I want to ensure that once I activate other workbooks Calculations are set to Automatic. Which works perfectly fine either using Workbook_Deactivate or Workbook_WindowDeactivate event and running Application.Calculation = xlCalculationAutomatic code. The only problem is that some formulas stop working e.g. this one
=INDEX(tblLabourRates, MATCH(D5&"Cost-plus"&C5,tblLabourRates[Country]&tblLabourRates[Rate type]&tblLabourRates[Currency],0), MATCH(TEXT(E5,"0"),tblLabourRates[#Headers],0))*F5*WORKDAYHOURS(D5)
calculationsdisapear.png
Initially i though values are zeroed, which was the case but it's result of IFERROR function. I have removed IFERROR from one cell (see top right cell on the screenshot) and obviously formula above stops working.
Other fomula e.g. =IF('EFFORT ESTIMATES'!$A611<>"0",SUMIF('EFFORT ESTIMATES'!$S$609:OFFSET('EFFORT ESTIMATES'!$S$609,,rscProjectWeeks+2),'P&L'!$C$103,'EFFORT ESTIMATES'!$S611:OFFSET('EFFORT ESTIMATES'!$S611,,rscProjectWeeks+2)),0) keeps working.
Attached picture for illustration and the code which is "problematic" . If that code is not used all formulas keeps working. Thanks in advance for advice. Tomas
Private Sub Workbook_WindowDeactivate(ByVal Wn As Window)
Application.Calculation = xlCalculationAutomatic
End Sub
Bookmarks