Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.interopoledde,microsoft.public.excel.links,microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Modifying the cell dependies

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.


  #2   Report Post  
Posted to microsoft.public.excel.interopoledde,microsoft.public.excel.links,microsoft.public.excel.programming
external usenet poster
 
Posts: 968
Default Modifying the cell dependies

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

"Aaron Queenan" wrote in message
...
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.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
modifying name format within a cell Myk Excel Discussion (Misc queries) 2 April 29th 10 09:09 PM
Copying information from one cell to another without modifying it. akkrug New Users to Excel 6 January 26th 10 06:14 AM
Modifying cell references Sandeep Excel Discussion (Misc queries) 7 July 26th 07 01:35 PM
Modifying Cell Addresses and operating on them RPG_Gamer Excel Worksheet Functions 4 October 20th 05 02:48 PM
Modifying cell entries? ringo tan New Users to Excel 2 September 24th 05 05:13 PM


All times are GMT +1. The time now is 05:00 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"