--
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 post to this group, send email to exce...@googlegroups.com.
Visit this group at https://groups.google.com/group/exceldna.
For more options, visit https://groups.google.com/d/optout.
The easiest would be for your SampleB.xll to have its own ExcelRibbon-derived class, which returns the GetCustomUI for its part.
The only issue then is how to write the xml so that they go on the same tab – you use the idMso and idQ attributes for this.
If you want a dynamic ribbon in a single add-in, the approach is a bit different. I don’t think you can just Invalidate to get the whole ribbon to reload.
But you can hide tabs and groups, and you can use a dynamicMenu element – see https://msdn.microsoft.com/en-us/library/dd944616(v=office.12).aspx
-Govert