James has attended:
Excel Advanced course
Excel VBA Intro Intermediate course
Excel VBA Advanced course
Functions within functions
How do you call a predefined function in a User defined function?
RE: Functions within functions
Hi James
Thank you for your question
I am assuming that you want to use one of the standard functions within your user defined function
To do this use need to use the work sheet function property of the application object.
For example the following code calculates the average of a range of cells and then returns it to a variable called MyAverage
MyAverage = Application.WorksheetFunction.Average("B1:D15")
Hope this is useful
Regards
Stephen