Custom Ribbon Tab

Add-in Express™ Support Service
That's what is more important than anything else

Custom Ribbon Tab
position of multiple custom Ribbon Tabs in Excel 
Michael Kaden


Guest


Hello Andrei

I want to position 3 Custom Ribbon Tabs

"Tab1" "Tab2" "Tab3" after the Home Bulit in Ribbon in this order

If I use InsertAfterIdMso TabHome

I cannot influence the display order of my Tabs

If I use InsertAfterID (adxRibbonTab_b33857a6a6a5487691226a53bd6bd388) puts the Tab at the end of the Ribbon.

I am sure there must be an easy solution, however can't find it in the manual or the forum.

Thank you & kind regards

Michael
Posted 05 Mar, 2021 06:47:34 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello Michael,

I can't make it work by specifying the InsertAfterId property.

I've make it work in this way:
- set the Namespace property of the add-in module. Set it to a an arbitrary string containing letters and digits, the first symbol must be a letter. No spaces and such.
- in the InsertAfterId of your second tab enter: "default:" followed by the id of your first ribbon tab, say, "default:adxRibbonTab_1"; I've modified the Id of my first tab
- accordingly, my third tab has "default:adxRibbonTab_2"
- the first tab should only set "TabHome" in InsertAfterIdMso.

The Namespace property, the "default:" and "shared:" (this one isn't used in your case) strings are described in section Sharing Ribbon controls across multiple add-ins at https://www.add-in-express.com/docs/net-ribbon-components.php#sharing-ribbon-controls.


Andrei Smolin
Add-in Express Team Leader
Posted 05 Mar, 2021 07:31:32 Top
Michael Kaden


Guest


Thank you very much Andrei, this works perfect.

Kind regards & have a nice weekend.

Michael
Posted 05 Mar, 2021 08:57:09 Top