Last month I asked a question in this forum about whether VBA and an application level AddIn written in Visual Studio could share a single custom ribbon in Word (see Common Ribbon for VBA and AddIns?).
Cindy Meister kindly pointed me in the right direction and by using a common namespace and the idQ attribute (instead of id) I have now reached a point where I indeed have a common custom ribbon. It is partly populated by custom UI XML from my Word template and partly by an AddIn programmed in Visual Studio.
That's great but there's just one problem left: I haven't found any way to control theorder of the ribbon elements. The UI elements from the AddIn always load first (from the left side of the ribbon), then the template elements. I would like it the other way round, or rather, I would like to be able to control this.
I have done several experiments but the usual way of using insertAfterQ or insertBeforeQ in the AddIn XML are just ignored.
Is it possible to achieve what I want? Any hints on how to take control of ths will be appreciated!
Willy