TomJeffries
Technical User
I want to be able to pass an arbitrary formula to a function as a parameter (as in C-Language). For example
=Summation("X^2 + 2 * x", First, Last, Increment)
Function Summation(formula As String, ...)As Long
x = First
Do
Total = total + formula
x = x + Increment
Until x > Last
Summation = total
End
Is something like this even possible?
=Summation("X^2 + 2 * x", First, Last, Increment)
Function Summation(formula As String, ...)As Long
x = First
Do
Total = total + formula
x = x + Increment
Until x > Last
Summation = total
End
Is something like this even possible?