RibbonX: How to organise custom tabs

I am creating a customised ribbon for a client's Excel solution. It is a large and very complicated application and as such has a number of custom tabs. Since I am using 'startFromScratch' normally the tab order would not be an issue. I have now hit an issue where I need a tab to be shown after a specific custom tab.

Is there any way of doing this ? I know about 'insertAfterMso' but there does not appear to be an equivalent for custom tabs. I have tried simply removing the 'Mso' to give 'insertAfter' but this does not work (even though that would follow the standard set by 'imageMso' and 'idMso').

Although I have a lot of experience creating RibbonX I have never come across this need before. Can anyone tell me how to do this ?

Unfortunately I can't post the workbook as it is the property of my client.
LVL 3
AL_XResearchAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RartemassLife CoachCommented:
Have you tried insertBeforeMso?

Is the tab you are trying to insert after something that isn't always visible?
For example the Table design tabs only appear when a table is selected.
0
Rory ArchibaldCommented:
Where does the other custom tab come from?
0
AL_XResearchAuthor Commented:
As I said in my initial post : insertAfterMSo works well but only when you are referring to a built in tab - I need something that will allow me to order relative to another custom tab.

The target custom tab (the one I want to order) is one I have written myself. It is after some tabs who's visibility will change.
0
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

Rory ArchibaldCommented:
You want TabA shown after TabB. Both are custom tabs. Are they created by different workbooks/add-ins? Are they both created by you?
0
AL_XResearchAuthor Commented:
They are both created by me in the same [*.xlam] file.
0
Rory ArchibaldCommented:
Then they should be created in the order you specify in your XML, as far as I know. Unless you explicitly position one of them, in which case you can use the same positioning technique for the other one too(either first or second depending on whether you want it before or after the other custom tab).
0
AL_XResearchAuthor Commented:
Yes they do get created in the order they are specified in the XML but I was wondering if there was an equivalent to insertAfterMso where a custom tab could be positioned regardless of the order declared in the XML and where there are no MS tabs.
0
Rory ArchibaldCommented:
As far as I know, the only thing you can use for custom tabs is the insertAfterQ and insertBeforeQ if you have created an idQ for the tab. Otherwise, you are limited to whatever order you put them into your XML.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.