Hi Chris,
#SPILL! errors are passed through the C API (which Excel-DNA uses) as #VALUE! errors (code 15).
So it’s not clear we can use the C API to distinguish between these two, or pass on a #SPILL! error through the ExcelError enum.
The COM error integer value you mention is not aligned with the C API and ExcelError enum.
It might be worth digging around a bit more, but it’s not as easy as adding an extra enum value.
-Govert
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/95c5bfab-e6a7-44f6-9589-d68515166fb5%40googlegroups.com.
xlErrBlocked | 2047 |
xlErrCalc | 2050 |
xlErrConnect | 2046 |
xlErrDiv0 | 2007 |
xlErrField | 2049 |
xlErrGettingData | 2043 |
xlErrNA | 2042 |
xlErrName | 2029 |
xlErrNull | 2000 |
xlErrNum | 2036 |
xlErrRef | 2023 |
xlErrSpill | 2045 |
xlErrUnknown | 2048 |
xlErrValue | 2015 |
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/009c01d5cf03%24cd7472b0%24685d5810%24%40icon.co.za.
Hi Chris,
#SPILL! errors are passed through the C API (which Excel-DNA uses) as #VALUE! errors (code 15).
So it’s not clear we can use the C API to distinguish between these two, or pass on a #SPILL! error through the ExcelError enum.
The COM error integer value you mention is not aligned with the C API and ExcelError enum.
It might be worth digging around a bit more, but it’s not as easy as adding an extra enum value.
-Govert
From: exce...@googlegroups.com <exce...@googlegroups.com> On Behalf Of Chris
Sent: 19 January 2020 21:07
To: Excel-DNA <exce...@googlegroups.com>
Subject: [ExcelDna] add #SPILL! to ExcelError enum
Govert, to support the new error related to dynamic arrays, can we get the #SPILL! error added to ExcelError enum in Excel.Integration?
It has integer value code of: -2146826243
Further info:
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exce...@googlegroups.com.
HI Patrick,
I think those codes are from the Javascript integration.
The three APIs (C/SDK, COM/VBA and Javascript) don’t align exactly.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/CAOfkUSLPFyBKFa-uZ4Tg%2BNN8FGfvtn8SpzTtMENBBOifgx1rWg%40mail.gmail.com.
Ah sorry – no those are indeed the VBA error codes.
Not sure that we can access the #SPILL! from the C API though.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/002d01d5cf72%24f19ac0d0%24d4d04270%24%40icon.co.za.