Custom Ribbon Tab Order (1 Viewer)

Wysy

Registered User.
Local time
Today, 09:33
Joined
Jul 5, 2015
Messages
333
Hi,
I have this custom ribbon xml that works fine

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="tb1" label="Main">
</tab>
<tab idMso="TabCreate" visible="true">
</tab>
</tabs>
</ribbon>
</customUI>

However the Create tab preceeds the Main tab and would like to have it the other way around. I found insertAfter but i can not figure out how to get it work.
Thanks
Wysy
 

theDBguy

I’m here to help
Staff member
Local time
Today, 09:33
Joined
Oct 29, 2018
Messages
21,467
Hi. Try this:
Code:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="tb1" label="Main" insertBeforeMso="TabCreate"><group id="grp1" label="Group1"></group>
</tab>
<tab idMso="TabCreate" visible="true">
</tab>
</tabs>
</ribbon>
</customUI>
 

Users who are viewing this thread

Top Bottom