User Defined Functions

R

Ron Bishop

Is there any way to trap the error of passing the wrong
number of arguments to a user defined function? Built-in
functions trap this error and present the user with an
error dialog. My user defined function simply returns
#VALUE! with no error message. The function is not even
being executed because a STOP as the first line of code
does not drop me into the VBA editor.

I know I could use the OPTIONAL or PARAMARRAY keywords but
I was hoping there might be a cleaner solution.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top