Hi Govert,
Good morning and many thanks for your quick response.
You are bang on the money. The two reside in a different domain.
The winform is in the DefaultDomain whereas the CTP is in FullTrustSandbox(Excel-Dna: .... .xll).
I experimented a bit further and tried to access the static object through a com class I exposed to vba. The same issue persisted. The com class was in the DefaltDomain whereas the CTP was in the FullTrustSandbox.
I then also thought about invalidating the Ribbon programatically through a com class exposed to vba. And I found the same problem. The com class once again in the DefaultDomain whereas the Ribbon in
FullTrustSandbox.
Doing some additional logging effectively it boiled down to the fact that the Ribbon and CTP are in the FullTrustSandbox domain and anything else in the add-in is in the Default Domain.
Any thoughts on how I could bring the two together please?
Much appreciated,
Achilleas