I wrote a custom Excel formula using VBA. It has more than one argument and it can be confusing for other users (and even for me) to remember what arguments to put in the formula.
I know that default formulas show contextual help to users when they use it in a cell, like in this example with the French version of =VLookup(
:
Question: Is there a way to do the same with a custom function? If not, do you know something else that can provide users with help on custom functions in formulas?
Here are some details that are probably irrelevant to the question, but might be useful for readers.
The code of the function looks like this:
Function myFunction(a, b, c, d, Optional ByVal e As Long = 1)
'some computations that return r
myFunction = r
End Function
The function is in a module in the .xlsm document (this can be changed). It works in formulas as intended, using =myFunction(a,b,c,d)
in a cell. The function is easy on the CPU usage and uses mostly basic Excel functions.