Yes, it is possible. You need to work out what the variables are and then create a function with those variables as inputs and return the result. You will find lots of example functions on this forum.
If you need help with specific code, post all of that code and we can make suggestions on how you might do it.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|