--------------------------------------------------
Easily add Excel-DNA support to your private or corporate GitHub account.
--------------------------------------------------Hi Dennis,
First (for the benefit of other readers) I should note that you are using a "Dynamic Arrays" version of Excel, which makes the async array results work.
Otherwise that part would already present big problems.
Next, I would say doing the formatting from the UDF can be a bit tricky, and it would help to show exactly how you're doing that.
I suggest you post a test function that exhibits the same problem, with maybe just a Task.Delay(....) before returning a fixed array, instead of the http back-end call.
I'm wondering if the timing between your formatting and Excel deciding how to spill the array might not be the problem.
Excel is probably not expecting you to change the formatting between the start of the function call and the array spill.
Since the first call to the RTD server (which implements the async function) takes a different path, then timing or sequence might be different.
-Govert