are you turning calculation off with the macro
The macro is 1 line of code to calculate an exponential function. Here
it is:
Public Function DSExp( _
ByVal x As Double, _
ByVal Xa As Double, _
ByVal Ya As Double, _
ByVal Yb As Double, _
ByVal h As Double) _
As Double
DSExp = Yb + (Ya - Yb) * Exp((-Log(2) / h) * (x - Xa))
'Note: In VBA, Log() is the natural log, Log10 is the base 10 log.
' In Excel, Ln() is the natural log and Log() is the base 10 log.
End Function
Calculation is set to Automatic.
this will set it to automatic, add it to the end of your code and see if it
helps
application.Calculation = xlautomatic
The macro isn't even getting called. I set a break point to see for
sure. So I can't see how this will help. I added it, but no
difference.
Here's what's weird. If I click on the calculate now icon (this is
Excel 2007), nothing happens. But if I click on the cell and press F2,
then tab, the calculation is performed, the breakpoints in my macros
happen, and the new values appear.
How come "Calculate now" doesn't calculate now?
--