add in - How to group different ribbons together? -
i have different excel add-in's (*.xlam) , have same “tab id” , same labels. when load them same excel file, each “add-in” creates separate ribbon same name. there way group them under same ribbon when loaded separately?
two of xml codes ribbons below:
<customui xmlns="http://schemas.microsoft.com/office/2009/07/customui"> <ribbon> <tabs> <tab id="companyfunctions" label="company functions "> <group id="grplogon" label="int_functions"> <button id="calculatex" label=" calculate x" imagemso="tabledrawtable" onaction="startcalculatex " size="large" /> </group> </tab> </tabs> </ribbon>
<customui xmlns="http://schemas.microsoft.com/office/2009/07/customui"> <ribbon> <tabs> <tab id="companyfunctions" label="company functions "> <group id="grplogon" label="int_functions"> <button id="calculatey" label=" calculate y" imagemso="tabledrawtable" onaction="startcalculatey " size="large" /> </group> </tab> </tabs> </ribbon>
you should use idq instead of id make them share same tab/group:
<customui xmlns="http://schemas.microsoft.com/office/2009/07/customui" xmlns:myaddins="myuniquekey"> <ribbon> <tabs> <tab idq="myaddins:companyfunctions" label="company functions "> <group idq="myaddins:grplogon" label="int_functions"> <button id="calculatex" label=" calculate x" imagemso="tabledrawtable" onaction="startcalculatex " size="large" /> </group> </tab> </tabs> </ribbon>
<customui xmlns="http://schemas.microsoft.com/office/2009/07/customui" xmlns:myaddins="myuniquekey"> <ribbon> <tabs> <tab idq="myaddins:companyfunctions" label="company functions "> <group idq="myaddins:grplogon" label="int_functions"> <button id="calculatey" label=" calculate y" imagemso="tabledrawtable" onaction="startcalculatey " size="large" /> </group> </tab> </tabs> </ribbon>
Comments
Post a Comment