Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refreshing specific formulas in worksheet programmatically

Tags:

c#

excel

I have developed an Excel plugin. It exposes three user-defined formulas to the Excel application. All that works fine. Now I need to add a refresh button that when clicked will refresh only those formulas in the worksheet. So in the button's click handler, what code do I need to write?

Using Application.CalculateFull() I can refresh all the formulas in the worksheet. Is there a way to refresh only specific formulas in the worksheet and not the entire worksheet?


1 Answers

Range("A3:C5").Calculate 'calculate all the cells from A3 to C5

OR

Range("A3").Calculate  'only calculate cell A3
like image 157
shahkalpesh Avatar answered May 11 '26 08:05

shahkalpesh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!