Volatile formulas

SteveGoodman

New Member
Joined
Sep 19, 2002
Messages
41
Can anyone help me with writing formulas in C using the Excel SDK.

At present we have about 40 formulas, most of which take about 4 or 5 values and then do SQL searchs on SQL Server, now all these functions/formulas are Volatile, so when in the function paste dialog (fx button) it keeps going away to require the database and thus is very slow.

What we would like to do is make the formulas non-volatile by using the # operator instead of the ! in the type_text, so they will not be continuously updating each time another part of the spreadhseet is changed. However when we make our functions non_volatile we seem to have no way of being able to telling them to go back off to the Database update themseleves. Pressing F9 makes no difference, as Excel belives that the values have not changed, and even closing down and opening up the spreadsheet again has no effect, as Excel still thinks that the values have not changed.

So what we ideally want to be able to do is have a menu option which turns the volatility of the formulas on and off.

Any ideas would be excellent.

Steve
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
I use an Add-In that looks at my financial database. Of course, Excel cannot know if the database has changed. To make them refresh when the workbook is calculated, I think they use a macro to interrupt the F9 key and replace = with =, then do the calculation as normal.

That said, I am surprised that your formulas do not refresh when you open a workbook.
 

Forum statistics

Threads
1,143,614
Messages
5,719,720
Members
422,242
Latest member
hishamkhatri

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top