I defined a function in VBA as follows
Public Function Distance(X, Y) as Double
Then in the cell I try to use this function. I type "@Dis" and get a drop-down menu, select a function, and then enter the parameters ending in @Distance (A1, A2) in the cell.
When I press Enter, I get the error message "This function is not valid."
I turned on macros throughout the system, tried to save it as an old format and as a workbook format with macro support to no avail.
What happened to my use of this feature?
Matt source
share