Hi James,
The Excel C API, which Excel-DNA uses for UDF support, does not support these extended return types.
It is a request I have made to Microsoft of their Excel announcements blog, but I think if you could add a feedback suggestion through the Excel Send-a-Smile / Frown interface, you might ask for the C API to add such support. We could then do the matching work on the Excel-DNA side.
The closest you can get with the current version of Excel and Excel-DNA is to return an ‘object handle’ to the calling cell.
Then other functions can take the ‘object handle’ to unpack or use the underlying object further.
However, you still won’t get the UI support that entity data types have, so it’s not quite the same.
There is a snippet discussing this approach here: https://groups.google.com/g/exceldna/c/M6SY4b5tLQo/m/dAKVsWpsQ3IJ
An open-source add-in that uses this approach extensively is discussed here: Interpolation in Excel using Excel-DNA - CodeProject
-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/29cc70b2-86e7-4208-8c4f-1c414aefb65en%40googlegroups.com.