Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / February 2006

Tip: Looking for answers? Try searching our database.

Sheet calculation target cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Otto Moehrbach - 22 Feb 2006 15:04 GMT
Excel 2002, WinXP
I have an OP who is getting stock updates through a Dynamic Data Exchange
(DDE).  He has a column of formulas that pull down the data.
   He wants something to happen when the contents of each of these cells
change and that "something" needs to be tied to the particular cell that
changed.  Therein lies the problem.
   Obviously the content of the cell (a formula) has not changed so I can't
use a Worksheet_Change macro to home in on the cell that changed.  The only
event that fires that I know of is the "sheet calculate" event, and that
event does not identify the cell that triggered the calculation.
   I feel that I'm not the first one to come up against this problem, but I
can't find anything on it.  Does anyone know of some methodology by which to
identify the cell that caused the calculation to fire?  Thanks for your
help.  Otto
Charles Williams - 22 Feb 2006 16:01 GMT
Otto,

I do not think there is a good solution to this, but here are some
suggestions that might be practical for small numbers of formulae:

- use a tracker function (similar to CalcSeqCountRef from my downloads page)
to track each cell and signal to the "something" that the cell has
changed/been recalculated. The problem is that this is probably only
practical for a few hundred cells before the overhead gets too large.

- use a shadow sheet that contains the values at the end of the last
calculation. Use the Sheet Calculate event to compare the values looking for
differences to trigger the "something" and then rewrite any changed values
into the shadow sheet.

The tracker function approach would work best if only a small number of
cells change at each calculation, or the number of changes per minute is not
large. The shadow sheet works best for batches of updates.

Charles
______________________
Decision Models
FastExcel 2.1 now available
www.DecisionModels.com

> Excel 2002, WinXP
> I have an OP who is getting stock updates through a Dynamic Data Exchange
[quoted text clipped - 10 lines]
> which to identify the cell that caused the calculation to fire?  Thanks
> for your help.  Otto
Otto Moehrbach - 22 Feb 2006 19:09 GMT
Charles
   Thanks for that.  I'll try both and see which fits him best.  Otto
> Otto,
>
[quoted text clipped - 35 lines]
>> which to identify the cell that caused the calculation to fire?  Thanks
>> for your help.  Otto
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.