Hello,
I have the following macro (user defined function, for use in Excel cells):
The problem is marked above. I want to return the error #NUM! as Excel would do, but it seems to be impossible.Please Login or Register to view this content.
First Error: invalid formats (sure: "#NUM!" is string, the function shall give a date)
If I change the function definitionthen I get the string (!) value #NUM! in the cell, but not the error value as Excel does (or would do).Please Login or Register to view this content.
Is it really impossible to return a built-in error from Excel with VBA?
Bookmarks