Posting the XML would help. Context menu customizations will not appear in the <ribbon> group, but in a separate <contextMenus> group. Here is a sample of a couple of modified context menu groups:
<ribbon>
<!-- Ribbon mods go here -->
</ribbon>
<contextMenus>
<contextMenu idMso="ContextMenuChartArea">
<button idMso="ChartChangeType" visible="false" />
<button
id="CCCustom1"
insertBeforeMso="ChartSaveTemplates"
imageMso="ChartInsert"
label="Change Chart Type"
supertip="Change to a different type of chart."
showImage="true"
showLabel="true"
onAction="ChartChange"/>
</contextMenu>
<contextMenu idMso="ContextMenuChartAxis">
<button idMso="ChartChangeType" visible="false" />
<button
id="CCCustom2"
insertBeforeMso="ChartEditDataMenu"
imageMso="ChartInsert"
label="Change Chart Type"
supertip="Change to a different type of chart."
showImage="true"
showLabel="true"
onAction="ChartChange"/>
</contextMenu>
</contextMenus>
I'm using the visual ribbon editor in Visual Studio
I have not used that. I use Office RibbonX Editor. You may need to be using Visual Studio for some other reason, but I have had no trouble adding to contextual tabs using that free program. This is working with a template Add-In, not a COM Add-In.
In my case (the latest version of Office), even with Office RibbonX Editor, I was able to change only regular tabs and not built-in contextual-tabs.
thank you!
Sign in to comment