Forum Discussion
etceterad
Jan 06, 2022Copper Contributor
Is it possible to add one custom button of your add-in to the existing tab at the ribbon and one to
I'm trying to add 2 buttons to the different tabs in Word via XML Manifest, but now for me, it seems to be impossible. That's all because I can't add OfficeTab and CustomTab in ExtensionPoint with xs...
Jan 06, 2022
It is not really clear what you are wanting to do. However, see the following page of Greg Maxey's website
https://gregmaxey.com/word_tip_pages/customize_ribbon_main.html
The following xml code adds a custom button to the Mailings tab of the ribbon
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon>
<tabs>
<tab idMso="TabMailings">
<group id="customGroup" label="Merge Special" insertAfterMso="GroupMailMergeFinish">
<button id="customButton" label="Merge to Word and PDF" size="large" imageMso="ExportToVCardFile" onAction="MergetoWordPDF" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
https://gregmaxey.com/word_tip_pages/customize_ribbon_main.html
The following xml code adds a custom button to the Mailings tab of the ribbon
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon>
<tabs>
<tab idMso="TabMailings">
<group id="customGroup" label="Merge Special" insertAfterMso="GroupMailMergeFinish">
<button id="customButton" label="Merge to Word and PDF" size="large" imageMso="ExportToVCardFile" onAction="MergetoWordPDF" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>