I'm developing a ribbon tab for use in a template (MyTemplate.dotm
) for Word 2010.
My problem: I want to have an ampersand symbol (&) in the label for a group. I have tried many things, and also alot of googling about this issue, but nothing works:
(named) &
(decimal) &
(decimal) &
(hex) &
This is what I have tried, the xml saved in MyTemplate.dotm
-file (with Custom UI Editor for Microsoft Office):
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon>
<tabs>
<tab id="tabMyTemplate" label="myTemplate">
<group id="grpCopyAndPasteCopy1" label="Copy&Paste 1">
<!-- HTML Entity (named) & -->
</group>
<group id="grpCopyAndPasteCopy2" label="Copy&Paste 2">
<!-- HTML Entity (decimal) & -->
</group>
<group id="grpCopyAndPasteCopy3" label="Copy&Paste 3">
<!-- HTML Entity (decimal) & -->
</group>
<group id="grpCopyAndPasteCopy4" label="Copy&Paste 4">
<!-- HTML Entity (hex) & -->
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Here is the result when open MyTemplate.dotm
in Word 2010:
Does anyone know how I should solve this problem?
&&
in my markup. If any of you would like to write an answer I would be happy to mark it as correct. – Selangor