I got RTD DisconnectData issue with array formula in Excel 2010 sp1 and Excel 2013 32bit version on windows 7 64bit.
When I run same formulas in single cell(not array), it works fine and can see disconnectdata method invoked.
This issue causes same behavior when use ExcelAsyncUtil.
I saw the Excel 2010 RTD bug helper can handle this issue. As I think, it also will work when apply same bug helper to array RTD formulas.
Reproduce step:
1, Select a range and input a formula with reference parameter. I.e, =myrtdfunc(A1), hit ctrl+shift+enter to execute.
Here I can see the rtd ConnectData invoked, topic id for example is 1.
2, Change A1 cell value. This will make myrtdfunc rerun as a new rtd topic. I can see rtd ConnectData invoked with topic id 2.
So far is ok. User changes formula parameters and Excel looks it as a new rtd formula request.
3, As I supposed, rtd server should get DisconnectData with topic 1 invoked. But actually it is not invoked.
Only when I am at the point before step 2, I select the range and clear the myrtdfunc, then hit ctrl+shift+enter, the rtd server DisconnectData will be invoked.
Thanks,
Larry
Thank you for your example. Your example works.
Compared your code and my code, I found my code defines RTD formula as IsMacroType=true. After I changed this attribute to false, my RTD formula DisconnectData worked.
So I cannot use RTD formula as macro. Right?
Thanks,
Larry
Hi Larry,
That's interesting - it's not something I knew of before.
-Govert
-----Original Message-----
From: exce...@googlegroups.com [mailto:exceldna@googlegroups.com] On Behalf Of Larry Lin
Sent: 10 July 2015 14:54
To: exce...@googlegroups.com
Subject: [ExcelDna] Re: Array formula with DisconnectData issue
Hi, Govert
Thank you for your example. Your example works.
Compared your code and my code, I found my code defines RTD formula as IsMacroType=true. After I changed this attribute to false, my RTD formula DisconnectData worked.
So I cannot use RTD formula as macro. Right?
Thanks,
Larry
--
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+unsubscribe@googlegroups.com.