Each ribbon XML starts with the line (Office 2007):
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
In case you want to define a Ribbon exclusively for Office 2010 the namespace will be:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
then:
<ribbon startFromScratch="true">
startFromScratch can be "true" or "false".
"true" defines following functionality:
"false" defines following functionality:
Next line:
<tabs>
From here you can place your XLM code for tabs, groups and controls, each section followed by endtags.
</tabs>
</ribbon>
</customUI>
Complete XML file:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"> <ribbon startFromScratch="false"> <tabs> <!-- place your XML code here --> </tabs> </ribbon> </customUI>
Complete XML file compatible with Office 2010 only:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"> <ribbon startFromScratch="false"> <tabs> <!-- place your XML code here --> </tabs> </ribbon> </customUI>