I have an xlam file that I want to add a custom ribbonX buttons to.
I use Custom UI Editor and with this xml it "works".
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab id="Tab1" label="LeaveReport">
<group id="Group1" label="Formatering">
<button id="Button1" imageMso="ChartSwitchRowColumn" size="large"/ >
</group>
</tab>
</tabs>
</ribbon>
</customUI>
But if I add onaction to make the button do something it does not load at all. Meaning the tab and buttons are not there at all.
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab id="Tab1" label="LeaveReport">
<group id="Group1" label="Formatering">
<button id="Button1" imageMso="ChartSwitchRowColumn" size="large"/ onAction="formatera_for_pivot_tabell()"/ >
</group>
</tab>
</tabs>
</ribbon>
</customUI>
I have also tried without ()
.
What am I doing wrong here? A button without an action is quite useless :-/