ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Communicating errors from a custom function in an add-in (https://www.excelbanter.com/excel-programming/299450-communicating-errors-custom-function-add.html)

Thomas Smith

Communicating errors from a custom function in an add-in
 
Excel 2003 has these perky little green triangles that will expand to show detailed error messages for built-in functions. Is there a way that I can communicate an error other than #VALUE or #N/A from my custom C++ add-in function? If there is an answer from VB that would be ok too

Thanks
Thomas Smith

Jens Thiel[_2_]

Communicating errors from a custom function in an add-in
 
"Thomas Smith" wrote:

Excel 2003 has these perky little green triangles that will expand to
show detailed error messages for built-in functions. Is there a way
that I can communicate an error other than #VALUE or #N/A from
my custom C++ add-in function? If there is an answer from VB that would

be ok too.

You can return other error XLOPERs like #NUM or #NULL but there seems to be
no way to return an error message. For ManagedXLL, I have been using a
separate window to log such messages.

Jens.

--
http://ManagedXLL.net/
Replace MSDN with my first name when replying to my email address!




All times are GMT +1. The time now is 01:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com