Click here to Skip to main content
15,898,718 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I've written the SheetCalculateEventHandler event to trigger for recalculation in Excel.

The function SheetCalculateEventHandler (object Sh) triggers when there is a formula change in the excel sheet.

My aim is to read the function result from the Sh object.
for example, if A1=50, A2=40 and A3=SUM(A1,A2).Now I change the A1=17 so now I A3 .The A3 is Related E4=A3.Now value also changed because we write function for that.I am able to trap the value of A3.
But I want to capture the value of E4.

If anybody have any idea then please guide me to get the value.

Thanks in advance.
S.ARAVAIND
Posted
Updated 2-Jun-10 22:43pm
v2
Comments
Sandeep Mewara 3-Jun-10 4:44am    
It might be good if you add the code snippet of what you have done.
shivaprasadk 19-Aug-10 6:22am    
Please give clarity in the question. do you need to capture the value of E4 to A3 or different cell? If possible, post along with the code.
Abhinav S 22-Oct-10 23:38pm    
If you post some code here, someone should be able to help you.

1 solution

In the Options dialog, you can turn off auto-calculation for Excel and have it triggered programmatically when your formula changed event gets triggered. I have one that only gets called whenever I do a save since it is calculation intensive.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900