Modifying the cell dependies

A

Aaron Queenan

I have a function F() implemented in an XLL, which depends on cell C.

Even though it calls Excel4(xlCoerce) on that cell, Excel doesn't seem to
add the cell to the dependency graph. As a result, changes to cell C don't
cause Excel to recalculate cells which call F().

Is there any way to force Excel to reevaluate the cell when C changes, which
is compatible with Excel 2000?

Thanks,
Aaron Queenan.
 
C

Charles Williams

Excel only knows to recalculate functions when one of their input arguments
change or is recalculated, or the function is volatile.

So either change F() to F(C) or make the function volatile (add ! as the
last character in the type_text argument).

(see page 224 in the MS Excel Devlopers Kit)

hth
Charles
______________________
Decision Models
The Excel Calculation Site
www.DecisionModels.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top