Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default Sheet calculation target cell

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 968
Default Sheet calculation target cell

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

"Otto Moehrbach" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default Sheet calculation target cell

Charles
Thanks for that. I'll try both and see which fits him best. Otto
"Charles Williams" wrote in message
...
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

"Otto Moehrbach" wrote in message
...
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





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
Target cell reference moves when target is cut and pasted Illya Teideman Excel Discussion (Misc queries) 5 May 31st 07 11:34 AM
Changing target sheet name wihtin a macro Jim G Excel Discussion (Misc queries) 2 January 30th 06 03:05 AM
Hide/unhide sheet macro based on cell calculation Greg Fisher Excel Programming 3 May 26th 05 05:58 PM
copy to another wb and name the target sheet (XL2000) robert burger Excel Programming 4 September 25th 04 03:17 AM
copy to another wb and name the target sheet (XL2000) robert burger Excel Programming 1 September 24th 04 04:40 PM


All times are GMT +1. The time now is 11:12 AM.

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

About Us

"It's about Microsoft Excel"