tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,924
- Office Version
- 365
- 2019
- Platform
- Windows
As far as I'm aware, Application.Volatile is rarely used, possibly frowned upon.
I have a udf that takes parameters:
As it is, this function will kick off if any of its three parameters changes.
However, parameter a is linked to another cell, say d.
If d changes, in order for my udf to update automatically, I suppose I would change the code to:
My question is: is this a badly desgined spreadsheet?
Should parameter a NOT have to be linked to d?
I have a udf that takes parameters:
Code:
Public Function MyFunction(ByRef a As Integer, ByRef b As Integer, ByRef c As Integer) As Integer
MyFunction = a + b + c
End Function
As it is, this function will kick off if any of its three parameters changes.
However, parameter a is linked to another cell, say d.
If d changes, in order for my udf to update automatically, I suppose I would change the code to:
Code:
Public Function MyFunction(ByRef a As Integer, ByRef b As Integer, ByRef c As Integer) As Integer
Application.Volatile
MyFunction = a + b + c
End Function
My question is: is this a badly desgined spreadsheet?
Should parameter a NOT have to be linked to d?