User VBA Functions Calc not Automatic

EssoExplJoe

New Member
Joined
Nov 11, 2016
Messages
30
I have several functions defined in VBA that are used in my workbook cells. However, when I change and input data in one cell in the spreadsheet, the functions do not recalculate unless I copy and repaste them. However, if I use ctrl+alt+F9, all are recalculated correctly. I have tried setting the calculation to "automatic" and also selecting the "Calculate Sheet NOW" options under the Formula menu item. How do I get the whole workbook to recalculate automatically when I change one of the input numbers?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Try to declare the UDF as Volatile function at the second line :

PHP:
Function ABC(...)
Application.Volatile
...
End function
So this UDF will be triggered if there is any change/update value in sheet.
 
Upvote 0
Solution
Try to declare the UDF as Volatile function at the second line :

PHP:
Function ABC(...)
Application.Volatile
...
End function
So this UDF will be triggered if there is any change/update value in sheet.
Thanks...the Applicaiton.Volatile statement in each of the UDF's used in my workbook cells recalculates anytime any value changes in any call on the worksheet.
 
Upvote 0

Forum statistics

Threads
1,216,074
Messages
6,128,653
Members
449,462
Latest member
Chislobog

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
Back
Top