ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cell wont calculate automaticaly (https://www.excelbanter.com/excel-programming/334527-cell-wont-calculate-automaticaly.html)

Karim Kamal

Cell wont calculate automaticaly
 
After running a long macro a cell containing this formula:

"=SI(C148=0;0;Interest_Rate(H16*12;C150;(C68+C101) ))"

(SI is IF in french excel)

wont calculate automaticaly anymore! I tried adding "Calculate" at the end
of the Macro and pressing "F9" for recalculation of the whole workbook and
neither worked. I have to go in the formula field and press enter manualy for
the cell to recalculate. The calculation mode is set to automatic!

Anyone have an idea??

thanks in advance!

K Dales[_2_]

Cell wont calculate automaticaly
 
You probably need to specify that your function Interest_Rate() should be
included in recalculation; you do that with Application.Volatile in the code.

"Marks a user-defined function as volatile. A volatile function must be
recalculated whenever calculation occurs in any cells on the worksheet. A
nonvolatile function is recalculated only when the input variables change.
This method has no effect if it's not inside a user-defined function used to
calculate a worksheet cell."

--
- K Dales


"Karim Kamal" wrote:

After running a long macro a cell containing this formula:

"=SI(C148=0;0;Interest_Rate(H16*12;C150;(C68+C101) ))"

(SI is IF in french excel)

wont calculate automaticaly anymore! I tried adding "Calculate" at the end
of the Macro and pressing "F9" for recalculation of the whole workbook and
neither worked. I have to go in the formula field and press enter manualy for
the cell to recalculate. The calculation mode is set to automatic!

Anyone have an idea??

thanks in advance!



All times are GMT +1. The time now is 08:58 AM.

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